netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/1] tools: tc-testing: Can pause just before post-suite
@ 2018-03-07 14:27 Brenda J. Butler
  2018-03-07 14:27 ` [PATCH net-next 1/1] tools: tc-testing: Can refer to $TESTID in test spec Brenda J. Butler
  2018-03-08 17:45 ` [PATCH net-next 1/1] tools: tc-testing: Can pause just before post-suite David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Brenda J. Butler @ 2018-03-07 14:27 UTC (permalink / raw)
  To: davem
  Cc: jhs, xiyou.wangcong, jiri, chrism, lucasb, aring, mrv,
	batuhanosmantaskaya, dcaratti, netdev, kernel, Brenda J. Butler

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@mojatatu.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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-03-08 17:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-07 14:27 [PATCH net-next 1/1] tools: tc-testing: Can pause just before post-suite Brenda J. Butler
2018-03-07 14:27 ` [PATCH net-next 1/1] tools: tc-testing: Can refer to $TESTID in test spec Brenda J. Butler
2018-03-08 17:45   ` David Miller
2018-03-08 17:59     ` Brenda Butler
2018-03-08 17:45 ` [PATCH net-next 1/1] tools: tc-testing: Can pause just before post-suite David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).