]> git.baikalelectronics.ru Git - kernel.git/commit
tc-testing: Allow test cases to be skipped
authorLucas Bates <lucasb@mojatatu.com>
Thu, 28 Feb 2019 22:38:40 +0000 (17:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 07:05:06 +0000 (23:05 -0800)
commitf96870e67a940110de8de7a0385678d4a2426fdc
tree4f6240e2b26aebed6b08666983290e33b345761c
parentc3dc41a6dbe0f177cd70d7bbfe38d18da50a2fc2
tc-testing: Allow test cases to be skipped

By adding a check for an optional key/value pair to the test case
data, individual test cases may be skipped to prevent tdc from
aborting a test run due to setup or teardown failure.

If a test case is skipped, it will still appear in the results
output to allow for a consistent number of executed tests in each
run. However, the test will be marked as skipped.

This support for skipping extends to any plugins that may generate
additional results for each executed test.

Signed-off-by: Lucas Bates <lucasb@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/TdcPlugin.py
tools/testing/selftests/tc-testing/creating-testcases/AddingTestCases.txt
tools/testing/selftests/tc-testing/plugin-lib/valgrindPlugin.py
tools/testing/selftests/tc-testing/tdc.py