Skip to content

Commit

Permalink
Eagerly fail a test suite if a step is not executable (#5389)
Browse files Browse the repository at this point in the history
Signed-off-by: amoore877 <[email protected]>
  • Loading branch information
amoore877 authored Aug 24, 2024
1 parent 1eb4340 commit 6e3b32c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/integration/test-one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ cp -R "${TESTDIR}"/* "${RUNDIR}/"
run-step() {
local script="$1"
if [ ! -x "$script" ]; then
log-warn "skipping \"$script\"; not executable"
return
fail-now "Failing: \"$script\" is not executable"
fi
log-debug "executing $(basename "$script")..."

Expand Down

0 comments on commit 6e3b32c

Please sign in to comment.