From 3a427f519863a58a4132a05a63b7b3311c653b4e Mon Sep 17 00:00:00 2001 From: DougCh Date: Thu, 1 Jun 2023 22:41:40 +0000 Subject: [PATCH] ci: allow running multiple integ tests at once in nix devshell --- nix/shell.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/shell.sh b/nix/shell.sh index 035f48d1d09..5cdb24b3112 100644 --- a/nix/shell.sh +++ b/nix/shell.sh @@ -58,7 +58,13 @@ function integ { (cd $SRC_ROOT/build; ctest -L integrationv2 -E "(integrationv2_cross_compatibility|integrationv2_renegotiate_apache)" --verbose) else banner "Warning: cross_compatibility & renegotiate_apache are not supported in nix for various reasons integ help for more info." - (cd $SRC_ROOT/build; ctest -L integrationv2 -R "$1" --verbose) + for i in $@; do + ctest --test-dir ./build -L integrationv2 --no-tests=error --output-on-failure -R "$i" --verbose + if [ "$?" -ne 0 ]; then + echo "Test failed, stopping execution" + exit 1 + fi + done fi }