diff --git a/test/Azure.Functions.Cli.Tests/ZipHelperTests.cs b/test/Azure.Functions.Cli.Tests/ZipHelperTests.cs index 0e1e802d6..3d7d38443 100644 --- a/test/Azure.Functions.Cli.Tests/ZipHelperTests.cs +++ b/test/Azure.Functions.Cli.Tests/ZipHelperTests.cs @@ -200,8 +200,17 @@ void CaptureOutput(string output) { } - ProcessWrapper.RunProcess("bash", $"-c '\''ls -l'\''", mntDir, writeOutput: CaptureOutput); - WriteOutput("2 worked"); + try + { + ProcessWrapper.RunProcess("bash", $"-c '\''ls -l'\''", mntDir, writeOutput: CaptureOutput); + WriteOutput("2 worked"); + } + catch + { + } + + ProcessWrapper.RunProcess("bash", $"-c \"ls -l\"", mntDir, writeOutput: CaptureOutput); + WriteOutput("3 worked"); var outputLines = bashOutput.Split('\n', StringSplitOptions.RemoveEmptyEntries); Assert.Equal(15, outputLines.Length);