tools: tc-testing: Can pause just before post-suite
Subsystems (4)
PATCH v2 1/1 tools: tc-testing: Can pause just before post-suite
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 <[email protected]>
--- tools/testing/selftests/tc-testing/tdc.py | 9 +++++++++ 1 file changed, 9 insertions(+)
tools/testing/selftests/tc-testing/tdc.py +9 -0
@@ -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
Signature · 1 line
2.15.1
David Miller
maintainerFrom: "Brenda J. Butler" <[email protected]>
Date: Thu, 8 Mar 2018 15:28:03 -0500
Quoted 5 lines
With option -P, the test script will pause just before the
post_suitefunctions are called. This allows the tester to inspect the system before it is torn down.Signed-off-by Brenda J. Butler <[email protected]>
This looks a lot better, applied, thanks.