@@ -137,15 +137,10 @@ class HostSpecificConfiguration(object):
137137 # For platforms which normally require a connected device to
138138 # test, the default behavior is to run tests that only require
139139 # the host (i.e., they do not attempt to execute).
140- if deployment_platform .is_darwin and \
141- deployment_platform .is_embedded and \
142- not deployment_platform .is_simulator :
143- if deployment_platform not in \
144- invocation .platforms_to_skip_test_host :
145- test_host_only = True
146- test = True
147- else :
148- test = False
140+ if deployment_platform .uses_host_tests and \
141+ deployment_platform not in \
142+ invocation .platforms_to_skip_test_host :
143+ test_host_only = True
149144
150145 name = deployment_target .name
151146
@@ -181,7 +176,7 @@ class HostSpecificConfiguration(object):
181176 "check-swift-benchmark-{}-external" .format (name ))
182177 if test :
183178 if test_host_only :
184- suffix = "-non-executable "
179+ suffix = "-only_non_executable "
185180 else :
186181 suffix = ""
187182 subset_suffix = ""
@@ -407,11 +402,13 @@ class BuildScriptInvocation(object):
407402 if not args .test_watchos_simulator :
408403 self .platforms_to_skip_test .add (
409404 StdlibDeploymentTarget .AppleWatchSimulator )
410-
411- if not args .test_android_host :
405+ if not args .test_android :
412406 self .platforms_to_skip_test .add (StdlibDeploymentTarget .Android )
413407
414408 self .platforms_to_skip_test_host = set ()
409+ if not args .test_android_host :
410+ self .platforms_to_skip_test_host .add (
411+ StdlibDeploymentTarget .Android )
415412 if not args .test_ios_host :
416413 self .platforms_to_skip_test_host .add (StdlibDeploymentTarget .iOS )
417414 if not args .test_tvos_host :
@@ -709,6 +706,8 @@ class BuildScriptInvocation(object):
709706 impl_args += ["--skip-test-watchos-host" ]
710707 if not args .test_watchos_simulator :
711708 impl_args += ["--skip-test-watchos-simulator" ]
709+ if not args .test_android :
710+ impl_args += ["--skip-test-android" ]
712711 if not args .test_android_host :
713712 impl_args += ["--skip-test-android-host" ]
714713 if args .build_runtime_with_host_compiler :
0 commit comments