Skip to content

Commit 7862df6

Browse files
committed
Capture Linux ARM64 test crashes
1 parent a56d245 commit 7862df6

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/linux-arm64.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,19 @@ jobs:
167167
cp ${GITHUB_WORKSPACE}/packaging/nuget/libOpenCvSharpExtern.so ${GITHUB_WORKSPACE}/test/OpenCvSharp.Tests/bin/Release/net10.0/
168168
cp ${GITHUB_WORKSPACE}/packaging/nuget/libOpenCvSharpExtern.so ${GITHUB_WORKSPACE}/test/OpenCvSharp.Tests/
169169
sudo cp ${GITHUB_WORKSPACE}/packaging/nuget/libOpenCvSharpExtern.so /usr/lib/
170-
LD_LIBRARY_PATH=. dotnet test OpenCvSharp.Tests.csproj -c Release -f net10.0 --runtime linux-arm64 --logger "trx;LogFileName=test-results.trx" < /dev/null
170+
# Preserve the executed-test sequence and a native dump when the test host crashes,
171+
# including failures that happen during process teardown after all tests complete.
172+
LD_LIBRARY_PATH=. dotnet test OpenCvSharp.Tests.csproj -c Release -f net10.0 --runtime linux-arm64 \
173+
--logger "trx;LogFileName=test-results.trx" \
174+
--blame-crash --blame-crash-dump-type full < /dev/null
175+
176+
- name: Upload crash dumps on failure
177+
if: failure()
178+
uses: actions/upload-artifact@v7
179+
with:
180+
name: linux-arm64-crash-dumps
181+
path: test/OpenCvSharp.Tests/TestResults/
182+
if-no-files-found: ignore
171183

172184
- name: Test Avalonia extensions
173185
run: |

0 commit comments

Comments
 (0)