From 1b029658868fdad224d7efc0047ddf1c41cca3e7 Mon Sep 17 00:00:00 2001 From: "Eric T. Johnson" Date: Thu, 19 Oct 2023 22:32:00 -0400 Subject: [PATCH] Set the exit code correctly in `test/run` when tests fail --- test/run | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/run b/test/run index fca0624..458aa08 100755 --- a/test/run +++ b/test/run @@ -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 }