OSDN Git Service

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)
commit255c1c7279abf991113e7c9c29f91e9f1a5776a9
tree4f6240e2b26aebed6b08666983290e33b345761c
parent745732c8ecf89ad60f7e393094d4993284bd1869
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