]> 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)
commit31aafb780e3af193ea5572fa18b842685df7d35e
tree4f6240e2b26aebed6b08666983290e33b345761c
parentdd064f0747ee33cee759c1b4087b5947d7cd0765
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