From: Thinh Tran Date: Mon, 2 Mar 2020 20:41:32 +0000 (-0500) Subject: test: fix autotest handling of skipped tests X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c8c3cfd699a117cf8c070059a606ea12ab030cbb;p=dpdk.git 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 Reviewed-by: David Christensen --- diff --git a/app/test/autotest_test_funcs.py b/app/test/autotest_test_funcs.py index 0811066cb0..6c717bddb4 100644 --- a/app/test/autotest_test_funcs.py +++ b/app/test/autotest_test_funcs.py @@ -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