From 0fc946aef4a606782f6e34780fbbedac9804a268 Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Wed, 22 Mar 2017 15:57:07 +0500 Subject: [PATCH] testing: Add reverse option to test runner. --- tools/test-backend | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/test-backend b/tools/test-backend index a01a67ffbb..9a588cfe1d 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -167,6 +167,10 @@ if __name__ == "__main__": action="store_true", default=False, help="Show which tests are slowest.") + parser.add_option('--reverse', dest='reverse', + action="store_true", + default=False, + help="Run tests in reverse order.") (options, args) = parser.parse_args() @@ -267,7 +271,8 @@ if __name__ == "__main__": print("-- Running tests in serial mode.") test_runner = TestRunner(failfast=options.fatal_errors, verbosity=2, - parallel=parallel, keepdb=True) + parallel=parallel, reverse=options.reverse, + keepdb=True) failures = test_runner.run_tests(suites, full_suite=full_suite) templates_not_rendered = test_runner.get_shallow_tested_templates()