Skip to content

Commit

Permalink
Strips trailing carriage return characters from input lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
lohia-shalini committed Feb 12, 2025
1 parent 450d22b commit 2002e34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/dotnet-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ jobs:
if: always() && steps.install-extensions.outcome == 'success'
uses: ./.github/composite-actions/install-and-run-dotnet

- name: Upload upgrade Log
if: always()
uses: actions/upload-artifact@v4
with:
name: dotnet-output
path: |
test/dotnet/Output/*
- name: Generate Code Coverage
id: generate-code-coverage
if: always() && steps.run-dotnet-tests.outcome == 'success'
Expand Down
4 changes: 2 additions & 2 deletions test/dotnet/utils/TestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,15 +471,15 @@ ProcessStartInfo GetDiffFileProcessDependingOnOs(string output, string expectedO
return new ProcessStartInfo
{
FileName = @"powershell.exe",
Arguments = $"-c \"diff -u -a (cat {output}) (cat {expectedOutput}) > {diffFile}\"",
Arguments = $"-c \"diff -u --strip-trailing-cr (cat {output}) (cat {expectedOutput}) > {diffFile}\"",
UseShellExecute = false,
CreateNoWindow = false,
RedirectStandardError = true
};
return new ProcessStartInfo
{
FileName = @"bash",
Arguments = $"-c \"diff -u -a {output} {expectedOutput} > {diffFile}\"",
Arguments = $"-c \"diff -u --strip-trailing-cr {output} {expectedOutput} > {diffFile}\"",
UseShellExecute = false,
CreateNoWindow = false,
RedirectStandardError = true
Expand Down

0 comments on commit 2002e34

Please sign in to comment.