@@ -206,8 +206,8 @@ def run_tests(swift_exec: str, args: argparse.Namespace) -> None:
206
206
"""
207
207
swiftpm_args = get_swiftpm_options (swift_exec , args , suppress_verbose = True )
208
208
additional_env = get_swiftpm_environment_variables (swift_exec , args )
209
- # 'swift test' doesn't print os_log output to the command line. Use the
210
- # `NonDarwinLogger` that prints to stderr so we can view the log output in CI test
209
+ # 'swift test' doesn't print os_log output to the command line. Use the
210
+ # `NonDarwinLogger` that prints to stderr so we can view the log output in CI test
211
211
# runs.
212
212
additional_env ['SOURCEKITLSP_FORCE_NON_DARWIN_LOGGER' ] = '1'
213
213
@@ -233,6 +233,7 @@ def run_tests(swift_exec: str, args: argparse.Namespace) -> None:
233
233
check_call (cmd + ['--parallel' ], additional_env = additional_env , verbose = args .verbose )
234
234
except :
235
235
print ('--- Running tests in parallel failed. Re-running tests serially to capture more actionable output.' )
236
+ sys .stdout .flush ()
236
237
check_call (cmd , additional_env = additional_env , verbose = args .verbose )
237
238
# Return with non-zero exit code even if serial test execution succeeds.
238
239
raise SystemExit (1 )
@@ -249,7 +250,7 @@ def install(swift_exec: str, args: argparse.Namespace) -> None:
249
250
swiftpm_args = get_swiftpm_options (swift_exec , args )
250
251
additional_env = get_swiftpm_environment_variables (swift_exec , args )
251
252
bin_path = swiftpm_bin_path (swift_exec , swiftpm_args = swiftpm_args , additional_env = additional_env )
252
-
253
+
253
254
for prefix in args .install_prefixes :
254
255
install_binary ('sourcekit-lsp' , bin_path , os .path .join (prefix , 'bin' ), verbose = args .verbose )
255
256
0 commit comments