Skip to content

Commit

Permalink
fixup device test script
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Dec 8, 2023
1 parent e728541 commit c56da69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions scripts/device-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Push-Location $PSScriptRoot/..
try
{
$tfm = 'net7.0-'
$arch = $(uname -m) -eq 'arm64' ? 'arm64' : 'x64'
$arch = (!$IsWindows -and $(uname -m) -eq 'arm64') ? 'arm64' : 'x64'
if ($Platform -eq 'android')
{
$tfm += 'android'
Expand Down Expand Up @@ -75,7 +75,11 @@ try
}
finally
{
scripts/parse-xunit2-xml.ps1 ./test_output/TestResults.xml | Out-File $env:GITHUB_STEP_SUMMARY
if ($CI)
{
scripts/parse-xunit2-xml.ps1 (Get-Item ./test_output/*.xml).FullName | Out-File $env:GITHUB_STEP_SUMMARY
}

}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/parse-xunit2-xml.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Set-StrictMode -Version Latest

if ([string]::IsNullOrEmpty($File) -or !(Test-Path($File)))
{
Write-Warning "Test output file was not found."
Write-Warning "Test output file was not found: '$File'."

# Return success exit code so that GitHub Actions highlights the failure in the test run, rather than in this script.
return
Expand Down

0 comments on commit c56da69

Please sign in to comment.