mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-09 05:18:03 +02:00
CI/Nix/Test: check gtest exit status
This commit is contained in:
parent
56d7a43102
commit
2ff598896d
2 changed files with 5 additions and 1 deletions
5
.github/workflows/nix-test.yml
vendored
5
.github/workflows/nix-test.yml
vendored
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue