From e98118cc201ca292caab1c9487de163dccdc2746 Mon Sep 17 00:00:00 2001 From: Brett Samblanet Date: Thu, 9 Jan 2025 06:49:32 -0800 Subject: [PATCH] test --- test/Azure.Functions.Cli.Tests/ZipHelperTests.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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);