Skip to content

Commit c56da69

Browse files
committed
fixup device test script
1 parent e728541 commit c56da69

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

scripts/device-test.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Push-Location $PSScriptRoot/..
2222
try
2323
{
2424
$tfm = 'net7.0-'
25-
$arch = $(uname -m) -eq 'arm64' ? 'arm64' : 'x64'
25+
$arch = (!$IsWindows -and $(uname -m) -eq 'arm64') ? 'arm64' : 'x64'
2626
if ($Platform -eq 'android')
2727
{
2828
$tfm += 'android'
@@ -75,7 +75,11 @@ try
7575
}
7676
finally
7777
{
78-
scripts/parse-xunit2-xml.ps1 ./test_output/TestResults.xml | Out-File $env:GITHUB_STEP_SUMMARY
78+
if ($CI)
79+
{
80+
scripts/parse-xunit2-xml.ps1 (Get-Item ./test_output/*.xml).FullName | Out-File $env:GITHUB_STEP_SUMMARY
81+
}
82+
7983
}
8084
}
8185
}

scripts/parse-xunit2-xml.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Set-StrictMode -Version Latest
44

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

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

0 commit comments

Comments
 (0)