summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/tc-testing/TdcPlugin.py
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-12-08 03:39:03 +0300
committerDavid S. Miller <davem@davemloft.net>2018-12-08 03:39:03 +0300
commit83af01ba1c2d38d3075b38af2a2116eb1ebe67e6 (patch)
tree2ab4c4af5123b4e1be32806cdc3254e6986ae5a6 /tools/testing/selftests/tc-testing/TdcPlugin.py
parent0fbe82e628c817e292ff588cd5847fc935e025f2 (diff)
parent8d189159ac1e8dc6d491840b3b2a9ede762269bc (diff)
downloadlinux-83af01ba1c2d38d3075b38af2a2116eb1ebe67e6.tar.xz
Merge branch 'tc-testing-next'
Lucas Bates says: ==================== tc-testing: implement command timeouts and better results tracking Patch 1 adds a timeout feature for any command tdc launches in a subshell. This prevents tdc from hanging indefinitely. Patches 2-4 introduce a new method for tracking and generating test case results, and implements it across the core script and all applicable plugins. ==================== 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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/tc-testing/TdcPlugin.py b/tools/testing/selftests/tc-testing/TdcPlugin.py
index 3ee9a6dacb52..1d9e279331eb 100644
--- a/tools/testing/selftests/tc-testing/TdcPlugin.py
+++ b/tools/testing/selftests/tc-testing/TdcPlugin.py
@@ -18,11 +18,12 @@ class TdcPlugin:
if self.args.verbose > 1:
print(' -- {}.post_suite'.format(self.sub_class))
- def pre_case(self, test_ordinal, testid):
+ def pre_case(self, test_ordinal, testid, test_name):
'''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
def post_case(self):