Bug fix: vping_userdata test status was not properly reported 11/43911/2
authorMorgan Richomme <morgan.richomme@orange.com>
Mon, 2 Oct 2017 15:11:13 +0000 (17:11 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Mon, 2 Oct 2017 15:30:26 +0000 (17:30 +0200)
commite36a14f6db0bc5ac93469bb553810de506f29bef
treef21358bdd74ba849f708c7836fdf526ff9e37577
parent29647efa114151d53ede5ba2d989593992c0b29f
Bug fix: vping_userdata test status was not properly reported

vping_base is calling vping_userdata
vping_user data could return only EX_TESTCASE_FAILED or EX_OK
by default vping_base always returns EX_OK (based on self.result=100..)
it returned EX_RUN_ERROR only if upper class report EX_RUN_ERROR

that is why vping_userdata was always PASS even if the trace "Ping OK"
cannot be retrieved from the Nova console

it seems that when running the vping_userdata, we systematically got
 Failed to read iid from metadata

Change-Id: If72441dd93bffada5c7a5399c87db68d7ebeebed
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
functest/opnfv_tests/openstack/vping/vping_base.py