提交 2b3905de 编写于 作者: B Brenda J. Butler 提交者: David S. Miller

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: NBrenda J. Butler <bjb@mojatatu.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 75291f3a
...@@ -324,6 +324,12 @@ def test_runner(pm, args, filtered_tests): ...@@ -324,6 +324,12 @@ def test_runner(pm, args, filtered_tests):
count += 1 count += 1
tap += 'done flushing skipped test tap output\n' 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) pm.call_post_suite(index)
return tap return tap
...@@ -406,6 +412,9 @@ def set_args(parser): ...@@ -406,6 +412,9 @@ def set_args(parser):
help='Suppress tap results for command under test') help='Suppress tap results for command under test')
parser.add_argument('-d', '--device', parser.add_argument('-d', '--device',
help='Execute the test case in flower category') 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 return parser
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册