Skip to content

Commit

Permalink
Merge pull request #218 from yut23/patch-1
Browse files Browse the repository at this point in the history
Set the exit code correctly in `test/run` when tests fail
  • Loading branch information
andsens authored Oct 20, 2023
2 parents f0789e8 + 1b02965 commit ca12b06
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/run
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ for ((;docopt_i>0;docopt_i--)); do declare -p "${prefix}__version" \

local ret=0
for version_path in "${versions[@]}"; do
if ! PATH=$PWD/$version_path:$PATH bats --tap "${suites[@]}"; then
ret=$?
fi
PATH=$PWD/$version_path:$PATH bats --tap "${suites[@]}" || ret=$?
done
return $ret
}
Expand Down

0 comments on commit ca12b06

Please sign in to comment.