* [PATCH v2 net-next] tools: tc-testing: Can pause just before post-suite
@ 2018-03-08 20:28 Brenda J. Butler
2018-03-09 16:22 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Brenda J. Butler @ 2018-03-08 20:28 UTC (permalink / raw)
To: davem
Cc: jhs, xiyou.wangcong, jiri, chrism, lucasb, aring, mrv,
batuhanosmantaskaya, dcaratti, netdev, kernel, Brenda J. Butler
With option -P, 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 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tools/testing/selftests/tc-testing/tdc.py b/tools/testing/selftests/tc-testing/tdc.py
index 241eea37e4a4..5da9494221e7 100755
--- a/tools/testing/selftests/tc-testing/tdc.py
+++ b/tools/testing/selftests/tc-testing/tdc.py
@@ -318,6 +318,12 @@ def test_runner(pm, args, filtered_tests):
count += 1
tap += 'done flushing skipped test tap output\n'
+
+ if args.pause:
+ print('Want to pause\nPress enter to continue ...')
+ if input(sys.stdin):
+ print('got something on stdin')
+
pm.call_post_suite(index)
return tap
@@ -400,6 +406,9 @@ def set_args(parser):
help='Suppress tap results for command under test')
parser.add_argument('-d', '--device',
help='Execute the test case in flower category')
+ parser.add_argument(
+ '-P', '--pause', action='store_true',
+ help='Pause execution just before post-suite stage')
return parser
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 net-next] tools: tc-testing: Can pause just before post-suite
2018-03-08 20:28 [PATCH v2 net-next] tools: tc-testing: Can pause just before post-suite Brenda J. Butler
@ 2018-03-09 16:22 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-03-09 16:22 UTC (permalink / raw)
To: bjb
Cc: jhs, xiyou.wangcong, jiri, chrism, lucasb, aring, mrv,
batuhanosmantaskaya, dcaratti, netdev, kernel
From: "Brenda J. Butler" <bjb@mojatatu.com>
Date: Thu, 8 Mar 2018 15:28:03 -0500
> With option -P, 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>
This looks a lot better, applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-09 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-08 20:28 [PATCH v2 net-next] tools: tc-testing: Can pause just before post-suite Brenda J. Butler
2018-03-09 16:22 ` 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).