Skip to content

Commit

Permalink
added non-zero exit code on assert script fail
Browse files Browse the repository at this point in the history
  • Loading branch information
adplincinst committed May 29, 2024
1 parent f20af57 commit ab05142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/iow/assert-s3-dir-cnt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ ACTUAL_COUNT=`$MC ls $DIR| wc -l`

if [ "$DESIRED_COUNT" -ne "$ACTUAL_COUNT" ]
then
echo "$DIR: wanted $DESIRED_COUNT directory entries, found $ACTUAL_COUNT"
echo "$DIR: wanted $DESIRED_COUNT directory entries, found $ACTUAL_COUNT" && exit 1
fi

0 comments on commit ab05142

Please sign in to comment.