Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
brettsam committed Jan 9, 2025
1 parent 5c7d00f commit e98118c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/Azure.Functions.Cli.Tests/ZipHelperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e98118c

Please sign in to comment.