Skip to content

Commit 6e17ef4

Browse files
authored
Merge pull request #1098 from apple/revert-1092-ks/always-run-tests-in-parallel
Revert "Always run tests in parallel"
2 parents 4ac277f + da63a2c commit 6e17ef4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Utilities/build-script-helper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ def add_rpath(rpath, binary, verbose):
150150
if verbose:
151151
print(stdout)
152152

153+
def should_test_parallel():
154+
return platform.system() != 'Linux'
155+
153156
def handle_invocation(args):
154157
swiftpm_args = get_swiftpm_options(args)
155158
toolchain_bin = os.path.join(args.toolchain, 'bin')
@@ -192,7 +195,9 @@ def handle_invocation(args):
192195
if os.path.exists(tool_path):
193196
env['SWIFT_DRIVER_' + tool.upper().replace('-','_') + '_EXEC'] = '%s' % (tool_path)
194197
test_args = swiftpm_args
195-
test_args += ['-Xswiftc', '-enable-testing', '--parallel']
198+
test_args += ['-Xswiftc', '-enable-testing']
199+
if should_test_parallel():
200+
test_args += ['--parallel']
196201
# The test suite consults these variables to control what tests get run
197202
env['SWIFT_DRIVER_ENABLE_INTEGRATION_TESTS'] = "1"
198203
if args.lit_test_dir:

0 commit comments

Comments
 (0)