From ecdc5004407a01b90cc641faa8a064f3c013133c Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 23 May 2017 16:20:35 -0700 Subject: [PATCH] test-backend: Run only one process for --rerun option. --- tools/test-backend | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/test-backend b/tools/test-backend index 01ee7b48aa..73e80073af 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -161,7 +161,7 @@ if __name__ == "__main__": type="int", callback=allow_positive_int, action='callback', - default=4, + default=None, help='Specify the number of processes to run the ' 'tests in. Default is 4.') parser.add_option('--profile', dest='profile', @@ -210,6 +210,7 @@ if __name__ == "__main__": # --nonfatal-errors, so that we don't end up removing tests from # the list that weren't run. if options.rerun: + options.processes = 1 options.fatal_errors = False failed_tests = get_failed_tests() if failed_tests: @@ -298,6 +299,9 @@ if __name__ == "__main__": generate_fixtures_command.append('--force') subprocess.call(generate_fixtures_command) + if options.processes is None: + options.processes = 4 + TestRunner = get_runner(settings) parallel = options.processes