Skip to content

Commit

Permalink
Make sure to exit with correct code for test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikParawell-SiFive committed Oct 19, 2023
1 parent 7f0e081 commit c83a60d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/wakebox/squashfuse/pass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ cleanup () {
# Sleep in hopes that fuse will close the session in time
sleep 3
rm -rf "$TMPDIR"
echo "?: $?"
}
trap cleanup EXIT

Expand All @@ -41,3 +42,4 @@ mksquashfs "$SQUASH_ROOT_DIR" "$SQUASHFS_FILENAME" -comp xz -all-root -noappend
# Check result
[ "$(jq .usage.status "$RESULT_JSON")" -ne 97 ] && exit 98

exit 0

0 comments on commit c83a60d

Please sign in to comment.