From: juraj.linkes Date: Thu, 10 Jan 2019 11:13:07 +0000 (+0100) Subject: Fix interactive tests X-Git-Tag: v19.04-rc0~15 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F16749%2F4;p=vpp.git Fix interactive tests When running tests interactively (i.e. not using child process) the tests are split into small suites each containing tests from a VPPTestCase, but only the first suite is run. Fix this by creatin a new suite with all of these small suites in it and running that suite. Change-Id: I0236f4a980d01765eb993f41d54d98640bb2cd39 Signed-off-by: juraj.linkes --- diff --git a/test/run_tests.py b/test/run_tests.py index 2940f9e3608..726ccc9c0f4 100644 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -789,11 +789,13 @@ if __name__ == '__main__': if attempts > 1: print("Perform %s attempts to pass the suite..." % attempts) - if run_interactive: + if run_interactive and len(suites): # don't fork if requiring interactive terminal + full_suite = unittest.TestSuite() + map(full_suite.addTests, suites) result = VppTestRunner(verbosity=verbose, failfast=failfast, - print_summary=True).run(suites[0]) + print_summary=True).run(full_suite) was_successful = result.wasSuccessful() if not was_successful: for test_case_info in result.failed_test_cases_info: