test: fix autotest handling of skipped tests
- When running the default configuration of autotest of the make test it'd take 900 seconds (15 minutes) for the script TIMEOUT and marks Failed for a specific device test that is not supported on the system under test. - Adding the checking for those tests, print out as "Skipped [Not Run]" quickly return and continue for next test Fixes: da0af48a67a5 ("test: add skipped return result") Cc: stable@dpdk.org Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com> Reviewed-by: David Christensen <drc@linux.vnet.ibm.com>
This commit is contained in:
parent
4db9587bbf
commit
c8c3cfd699
@ -13,13 +13,16 @@ import pexpect
|
||||
def default_autotest(child, test_name):
|
||||
child.sendline(test_name)
|
||||
result = child.expect(["Test OK", "Test Failed",
|
||||
"Command not found", pexpect.TIMEOUT], timeout=900)
|
||||
"Command not found", pexpect.TIMEOUT,
|
||||
"Test Skipped"], timeout=900)
|
||||
if result == 1:
|
||||
return -1, "Fail"
|
||||
elif result == 2:
|
||||
return -1, "Fail [Not found]"
|
||||
elif result == 3:
|
||||
return -1, "Fail [Timeout]"
|
||||
elif result == 4:
|
||||
return 0, "Skipped [Not Run]"
|
||||
return 0, "Success"
|
||||
|
||||
# autotest used to run dump commands
|
||||
|
Loading…
x
Reference in New Issue
Block a user