Skip to content

Commit

Permalink
add failing exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseifedotov committed Feb 4, 2025
1 parent aca4c72 commit 348b580
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: make host kernel image readable, for guestfish
run: sudo chmod +r /boot/vmlinuz-*

- name: guestfish access to kvm
run: sudo chmod 0666 /dev/kvm

- name: Build
run: |
cd update-agent
Expand Down
5 changes: 5 additions & 0 deletions update-agent/t/podman-runner.nu
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,15 @@ def "main check" [mock_path] {
] | str join "\n" | guestfish --rw -a $mmcblk0


mut failed = false
if not (cmp-img-with-partition $"($mock_path)/mnt/cuda_layer.img" ./CUDA_LAYER_b.after_ota.img) {
log error "CUDA_LAYER_b Test failed"
$failed = true
}
rm ./CUDA_LAYER_b.after_ota.img
if $failed {
exit 3
}
}

export def "main clean" [mock_path] {
Expand Down

0 comments on commit 348b580

Please sign in to comment.