diff options
author | juraj.linkes <juraj.linkes@pantheon.tech> | 2019-01-10 12:13:07 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-01-11 18:18:48 +0000 |
commit | 46e8e91bcad6fa3e8cefa8767954576c3075ef22 (patch) | |
tree | 8dc7e98a7f21002d88675a3ad7d1b2c1c7c47c2a /test/run_tests.py | |
parent | 14fa5c2a896616d2830bbb227f7bc17e690d4d2c (diff) |
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 <juraj.linkes@pantheon.tech>
Diffstat (limited to 'test/run_tests.py')
-rw-r--r-- | test/run_tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
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: |