mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-24 10:04:19 -05:00
CI/Nix/Test: check gtest exit status
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user