Return-Path: Received: from mail-io0-f195.google.com ([209.85.223.195]:45174 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750849AbeCHU2O (ORCPT ); Thu, 8 Mar 2018 15:28:14 -0500 Received: by mail-io0-f195.google.com with SMTP id m22so1067450iob.12 for ; Thu, 08 Mar 2018 12:28:14 -0800 (PST) From: "Brenda J. Butler" To: davem@davemloft.net Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, chrism@mellanox.com, lucasb@mojatatu.com, aring@mojatatu.com, mrv@mojatatu.com, batuhanosmantaskaya@gmail.com, dcaratti@redhat.com, netdev@vger.kernel.org, kernel@mojatatu.com, "Brenda J. Butler" Subject: [PATCH v2 net-next] tools: tc-testing: Can pause just before post-suite Date: Thu, 8 Mar 2018 15:28:03 -0500 Message-Id: <20180308202803.31771-1-bjb@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: 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 --- 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