Skip to content

Commit

Permalink
check exit code
Browse files Browse the repository at this point in the history
On success, Qemu exit with the code 3. Add check if this code was
returned.
  • Loading branch information
stlankes committed Feb 5, 2025
1 parent 5c526ef commit 31ff637
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,26 @@ jobs:
- name: Build dev profile
run: cargo build
- name: Test debug profile (Qemu)
run: cargo run
run: |
set +e
cargo run
if [ $? -eq 3 ]; then
echo "Hermit runs succesfully within Qemu"
exit 0
else
echo "Hermit isn't able to run within Qemu"
exit 1
fi
- name: Build release profile
run: cargo build --release
- name: Test release profile (Qemu)
run: cargo run --release
run: |
set +e
cargo run --release
if [ $? -eq 3 ]; then
echo "Hermit runs succesfully within Qemu"
exit 0
else
echo "Hermit isn't able to run within Qemu"
exit 1
fi

0 comments on commit 31ff637

Please sign in to comment.