[xharness] Fix simctl arguments. (#7772)
* [xharness] Fix simctl arguments. * Fix another case.
This commit is contained in:
Родитель
de8ad75978
Коммит
47ebd0d947
|
@ -472,17 +472,17 @@ namespace xharness
|
|||
{
|
||||
// here we don't care if execution fails.
|
||||
// erase the simulator (make sure the device isn't running first)
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "shutdown " + UDID }, log, TimeSpan.FromMinutes (1));
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "erase " + UDID }, log, TimeSpan.FromMinutes (1));
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "shutdown", UDID }, log, TimeSpan.FromMinutes (1));
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "erase", UDID }, log, TimeSpan.FromMinutes (1));
|
||||
|
||||
// boot & shutdown to make sure it actually works
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "boot " + UDID }, log, TimeSpan.FromMinutes (1));
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "shutdown " + UDID }, log, TimeSpan.FromMinutes (1));
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "boot", UDID }, log, TimeSpan.FromMinutes (1));
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "shutdown", UDID }, log, TimeSpan.FromMinutes (1));
|
||||
}
|
||||
|
||||
public async Task ShutdownAsync (Log log)
|
||||
{
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "shutdown " + UDID }, log, TimeSpan.FromMinutes (1));
|
||||
await Harness.ExecuteXcodeCommandAsync ("simctl", new [] { "shutdown", UDID }, log, TimeSpan.FromMinutes (1));
|
||||
}
|
||||
|
||||
public static async Task KillEverythingAsync (Log log)
|
||||
|
@ -627,7 +627,7 @@ namespace xharness
|
|||
simulator_app = Path.Combine (Harness.XcodeRoot, "Contents", "Developer", "Applications", "iOS Simulator.app");
|
||||
}
|
||||
|
||||
await ProcessHelper.ExecuteCommandAsync ("open", new [] { "-a ", simulator_app, "--args", "-CurrentDeviceUDID", UDID }, log, TimeSpan.FromSeconds (15));
|
||||
await ProcessHelper.ExecuteCommandAsync ("open", new [] { "-a", simulator_app, "--args", "-CurrentDeviceUDID", UDID }, log, TimeSpan.FromSeconds (15));
|
||||
}
|
||||
|
||||
public async Task PrepareSimulatorAsync (Log log, params string[] bundle_identifiers)
|
||||
|
|
Загрузка…
Ссылка в новой задаче