Skip to content

Commit 46a21c4

Browse files
authored
Merge pull request #77850 from al45tair/eng/PR-140313372
[Build] Fix swift_build_support tests.
2 parents 6221b29 + fc2d1b3 commit 46a21c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/swift_build_support/tests/test_host_specific_configuration.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test(self):
233233
'stress_test')
234234

235235
def generate_should_skip_testing_platform(
236-
host_target, build_arg_name, test_arg_name):
236+
host_target, build_arg_name, test_arg_name, extra_test_arg_name=None):
237237
def test(self):
238238
args = self.default_args()
239239
setattr(args, build_arg_name, True)
@@ -245,6 +245,8 @@ def test(self):
245245
self.assertEqual(len(before.swift_test_run_targets), 0)
246246

247247
setattr(args, test_arg_name, True)
248+
if extra_test_arg_name is not None:
249+
setattr(args, extra_test_arg_name, True)
248250
after = HostSpecificConfiguration(host_target, args)
249251
self.assertIn('check-swift-{}'.format(host_target),
250252
after.swift_test_run_targets)
@@ -292,7 +294,8 @@ def test(self):
292294
generate_should_skip_testing_platform(
293295
'watchsimulator-x86_64',
294296
'build_watchos_simulator',
295-
'test_watchos_simulator')
297+
'test_watchos_simulator',
298+
'test_watchos_64bit_simulator')
296299

297300
def generate_should_allow_testing_only_host(
298301
host_target, build_arg_name, test_arg_name, host_test_arg_name):

0 commit comments

Comments
 (0)