Skip to content

Commit

Permalink
tools: tc-testing: Can pause just before post-suite
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Brenda J. Butler authored and David S. Miller committed Mar 9, 2018
1 parent 75291f3 commit 2b3905d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/testing/selftests/tc-testing/tdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,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
Expand Down Expand Up @@ -406,6 +412,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


Expand Down

0 comments on commit 2b3905d

Please sign in to comment.