Skip to content

Commit

Permalink
try quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft committed Nov 14, 2023
1 parent 0b6da99 commit a5dfeb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AppInstallerCLIE2ETests/ResumeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void InstallRequiresRebootToFinish()
int initialCheckpointsCount = Directory.Exists(checkpointsDir) ? Directory.GetDirectories(checkpointsDir).Length : 0;

var installDir = TestCommon.GetRandomTestDir();
var result = TestCommon.RunAICLICommand("install", $"TestRebootRequired --custom '/ExitCode 9' -l {installDir}");
var result = TestCommon.RunAICLICommand("install", $"TestRebootRequired --custom \"/ExitCode 9\" -l {installDir}");
Assert.AreNotEqual(Constants.ErrorCode.ERROR_INSTALL_REBOOT_REQUIRED_TO_FINISH, result.ExitCode);
Assert.True(result.StdOut.Contains("Restart your PC to finish installation."));
Assert.True(TestCommon.VerifyTestExeInstalledAndCleanup(installDir));
Expand All @@ -99,7 +99,7 @@ public void InstallRequiresRebootToInstall()
int initialCheckpointsCount = Directory.Exists(checkpointsDir) ? Directory.GetDirectories(checkpointsDir).Length : 0;

var installDir = TestCommon.GetRandomTestDir();
var result = TestCommon.RunAICLICommand("install", $"TestRebootRequired --custom '/ExitCode 10' -l {installDir}");
var result = TestCommon.RunAICLICommand("install", $"TestRebootRequired --custom \"ExitCode 10\" -l {installDir}");
Assert.AreNotEqual(Constants.ErrorCode.ERROR_INSTALL_REBOOT_REQUIRED_FOR_INSTALL, result.ExitCode);
Assert.True(result.StdOut.Contains("Installation failed. Restart your PC then try again."));
Assert.True(TestCommon.VerifyTestExeInstalledAndCleanup(installDir));
Expand Down

0 comments on commit a5dfeb6

Please sign in to comment.