CI/Nix/Test: check gtest exit status

This commit is contained in:
Mihai Fufezan 2026-04-29 17:20:14 +03:00
parent 56d7a43102
commit 2ff598896d
2 changed files with 5 additions and 1 deletions

View file

@ -18,7 +18,10 @@ jobs:
run: nix build 'github:${{ github.repository }}?ref=${{ github.ref }}#checks.x86_64-linux.tests' -L --extra-substituters "https://hyprland.cachix.org"
- name: Check exit status
run: grep 0 result/exit_status
run: |
grep 0 result/exit_status || echo "hyprtester failed"
grep 0 result/exit_status_gtests || echo "gtests failed"
[ 0 = $(cat result/exit_status) ] && [ 0 = $(cat result/exit_status_gtests) ]
- name: Upload artifacts
if: always()

View file

@ -101,6 +101,7 @@ in
machine.copy_from_vm("/tmp/testerlog")
machine.copy_from_vm("/tmp/hyprlog")
machine.copy_from_vm("/tmp/exit_status")
machine.copy_from_vm("/tmp/exit_status_gtests")
# Finally - shutdown
machine.shutdown()