[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180307142715.19755-1-bjb@mojatatu.com>
Date: Wed, 7 Mar 2018 09:27:14 -0500
From: "Brenda J. Butler" <bjb@...atatu.com>
To: davem@...emloft.net
Cc: jhs@...atatu.com, xiyou.wangcong@...il.com, jiri@...nulli.us,
chrism@...lanox.com, lucasb@...atatu.com, aring@...atatu.com,
mrv@...atatu.com, batuhanosmantaskaya@...il.com,
dcaratti@...hat.com, netdev@...r.kernel.org, kernel@...atatu.com,
"Brenda J. Butler" <bjb@...atatu.com>
Subject: [PATCH net-next 1/1] tools: tc-testing: Can pause just before post-suite
At debug level 5 or above, the test script will pause just before
the post_suite functions are called. This allows the tester to
inspect the system before it is torn down.
Signed-off-by: Brenda J. Butler <bjb@...atatu.com>
---
tools/testing/selftests/tc-testing/tdc.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py
index 241eea37e4a4..3f5b0a696df2 100755
--- a/tools/testing/selftests/tc-testing/tdc.py
+++ b/tools/testing/selftests/tc-testing/tdc.py
@@ -308,6 +308,7 @@ def test_runner(pm, args, filtered_tests):
# if we failed in setup or teardown,
# fill in the remaining tests with ok-skipped
count = index
+
if not args.notap:
tap += 'about to flush the tap output if tests need to be skipped\n'
if tcount + 1 != index:
@@ -318,6 +319,12 @@ def test_runner(pm, args, filtered_tests):
count += 1
tap += 'done flushing skipped test tap output\n'
+
+ if args.verbose > 4:
+ print('Want to pause\nPress enter to continue ...')
+ if input(sys.stdin):
+ print('got something on stdin')
+
pm.call_post_suite(index)
return tap
--
2.15.1
Powered by blists - more mailing lists