aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing/TdcPlugin.py
diff options
context:
space:
mode:
authorLucas Bates <lucasb@mojatatu.com>2019-07-08 21:34:26 -0400
committerDavid S. Miller <davem@davemloft.net>2019-07-09 14:07:20 -0700
commita7d50a0dd81b09dc13fa9e4b55765e8684bc8226 (patch)
tree9002f00cf328cfd8f23f554644780e1654af9bd6 /tools/testing/selftests/tc-testing/TdcPlugin.py
parentnet: dsa: vsc73xx: fix NET_DSA and OF dependencies (diff)
downloadlinux-dev-a7d50a0dd81b09dc13fa9e4b55765e8684bc8226.tar.xz
linux-dev-a7d50a0dd81b09dc13fa9e4b55765e8684bc8226.zip
tc-testing: Allow tdc plugins to see test case data
Instead of only passing the test case name and ID, pass the entire current test case down to the plugins. This change allows plugins to start accepting commands and directives from the test cases themselves, for greater flexibility in testing. 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.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/testing/selftests/tc-testing/TdcPlugin.py b/tools/testing/selftests/tc-testing/TdcPlugin.py
index b980a565fa89..79f3ca8617c9 100644
--- a/tools/testing/selftests/tc-testing/TdcPlugin.py
+++ b/tools/testing/selftests/tc-testing/TdcPlugin.py
@@ -18,12 +18,11 @@ class TdcPlugin:
if self.args.verbose > 1:
print(' -- {}.post_suite'.format(self.sub_class))
- def pre_case(self, testid, test_name, test_skip):
+ def pre_case(self, caseinfo, 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.caseinfo = caseinfo
self.args.test_skip = test_skip
def post_case(self):