From 5c5e3bdb4784731bbad67197d5b49b7982dee93e Mon Sep 17 00:00:00 2001 From: Gerrit Goossen Date: Tue, 27 Aug 2024 06:44:02 -0700 Subject: [PATCH] Fix test running when test host is running Summary: When running tests locally in VS Code it's easy for a user to disconnect the debugger without quitting the test host app, and because the simulator is headless, this leaves the test host running with no way to quit it. Because the test host is running, future test runs will always fail because the process is "already running." This diff changes test runs to kill and relaunch the test host if it is already running, so a user can continue to run tests. Differential Revision: D61735347 fbshipit-source-id: 1f6230daf2d89b1f85da4f1089e54f04eeb0ecab --- CompanionLib/Utility/FBXCTestDescriptor.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CompanionLib/Utility/FBXCTestDescriptor.m b/CompanionLib/Utility/FBXCTestDescriptor.m index 24e8c4fe2..450fdb943 100644 --- a/CompanionLib/Utility/FBXCTestDescriptor.m +++ b/CompanionLib/Utility/FBXCTestDescriptor.m @@ -44,7 +44,7 @@ environment:environment ?: @{} waitForDebugger:waitForDebugger io:io - launchMode:FBApplicationLaunchModeFailIfRunning]; + launchMode:FBApplicationLaunchModeRelaunchIfRunning]; }]; }