aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/tc-testing/TdcPlugin.py
diff options
context:
space:
mode:
authorLucas Bates <lucasb@mojatatu.com>2019-02-28 17:38:40 -0500
committerDavid S. Miller <davem@davemloft.net>2019-03-01 23:05:06 -0800
commit255c1c7279abf991113e7c9c29f91e9f1a5776a9 (patch)
tree4f6240e2b26aebed6b08666983290e33b345761c /tools/testing/selftests/tc-testing/TdcPlugin.py
parentMerge branch 'mlxsw-rehash-split' (diff)
downloadwireguard-linux-255c1c7279abf991113e7c9c29f91e9f1a5776a9.tar.xz
wireguard-linux-255c1c7279abf991113e7c9c29f91e9f1a5776a9.zip
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>
Diffstat (limited to 'tools/testing/selftests/tc-testing/TdcPlugin.py')
-rw-r--r--tools/testing/selftests/tc-testing/TdcPlugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/tc-testing/TdcPlugin.py b/tools/testing/selftests/tc-testing/TdcPlugin.py
index 1d9e279331eb..b980a565fa89 100644
--- a/tools/testing/selftests/tc-testing/TdcPlugin.py
+++ b/tools/testing/selftests/tc-testing/TdcPlugin.py
@@ -18,13 +18,13 @@ class TdcPlugin:
if self.args.verbose > 1:
print(' -- {}.post_suite'.format(self.sub_class))
- def pre_case(self, test_ordinal, testid, test_name):
+ def pre_case(self, testid, test_name, test_skip):
'''run commands before test_runner does one test'''
if self.args.verbose > 1:
print(' -- {}.pre_case'.format(self.sub_class))
self.args.testid = testid
self.args.test_name = test_name
- self.args.test_ordinal = test_ordinal
+ self.args.test_skip = test_skip
def post_case(self):
'''run commands after test_runner does one test'''