Skip to content

Commit

Permalink
Distinguish failed builds from successful ones
Browse files Browse the repository at this point in the history
  • Loading branch information
patricoferris committed May 3, 2024
1 parent e6083bc commit 10905aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/test/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,16 @@ case "$1" in
else
echo "Successfully Failed"
fi

sudo rm -rf /rsync

# We run the failed build twice to check the failure logic.
# It should find the failed build, delete it and then fail again.
if sudo "$GITHUB_WORKSPACE/_build/install/default/bin/shark" md specs/shark.failure.md --store=rsync:/rsync --rsync-mode=hardlink --verbose; then
exit 1
else
echo "Successfully Failed"
fi

sudo rm -rf /rsync
;;
*)
printf "Usage: main.sh [zfs|rsync_copy]" >&2
Expand Down
2 changes: 1 addition & 1 deletion vendor/obuilder

0 comments on commit 10905aa

Please sign in to comment.