Skip to content

Commit 0ebb24c

Browse files
committed
try to get better output
1 parent 9b31fa8 commit 0ebb24c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/MsBuild/Run.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ New-Item $basePath -ItemType Directory | Out-Null
1818

1919
$failureMessage = ""
2020

21-
2221
foreach ($scenario in $scenarios) {
22+
# these fail on windows in GH and because they use dockerfiles for the scenarios we don't need to run them twice anyway
2323
if ($env:GithubOS -eq "windows-latest") {
2424
continue
2525
}
@@ -76,7 +76,7 @@ RUN dotnet build -c Release
7676

7777
Write-Host "::group::UnformattedFileCausesError"
7878

79-
& dotnet build -c Release ./TestCases/UnformattedFileCausesError/Project.csproj > $output
79+
$output = (& dotnet build -c Release ./TestCases/UnformattedFileCausesError/Project.csproj) | Out-String
8080
Write-Host $output
8181
if ($LASTEXITCODE -ne 1) {
8282
$failureMessage += "::error::The TestCase UnformattedFileCausesError did not return an exit code of 1`n"

0 commit comments

Comments
 (0)