From f94c7cef598c753073d47b47c7b81c0f14d1a075 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Wed, 15 May 2019 18:15:45 -0700 Subject: [PATCH] -j option actually work ... --- test/run.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/run.py b/test/run.py index 6b29475b..70fdc450 100755 --- a/test/run.py +++ b/test/run.py @@ -456,7 +456,7 @@ def main(): help='Run the test through lldb.') parser.add_argument('--run_name', '-n', help='Name of the test run.') - parser.add_argument('--cpu_count', '-j', + parser.add_argument('--cpu_count', '-j', type=int, default=multiprocessing.cpu_count(), help='Number of cpus to use for running the tests.') args = parser.parse_args() @@ -502,10 +502,8 @@ def main(): print('LLDB is only supported on Apple at this point') args.lldb = False - cpuCount = args.cpu_count or multiprocessing.cpu_count() - return run(args.test, buildDir, sanitizer, xmlOutput, - testRunName, args.build_only, args.lldb, cpuCount) + testRunName, args.build_only, args.lldb, args.cpu_count) if __name__ == '__main__':