From cbbb7d0cd4a3d61e732a3175f75002166ce00cd6 Mon Sep 17 00:00:00 2001 From: ivvist Date: Tue, 3 Dec 2024 09:08:16 +0100 Subject: [PATCH] fix test workflow script --- scripts/test_subfolders.sh | 2 +- scripts/test_subfolders_full.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test_subfolders.sh b/scripts/test_subfolders.sh index a6a0b73..2d7214a 100644 --- a/scripts/test_subfolders.sh +++ b/scripts/test_subfolders.sh @@ -13,7 +13,7 @@ for dir in $(find . -name "go.mod" -not -path "./go.mod" -not -path "*/testdata/ done # Check if any test failed and exit with a non-zero status -if [ "$any_test_failed" -ne 0 ]; then +if [[ "$any_test_failed" -ne 0 ]]; then echo "The tests did not pass. Please check the errors above." exit 1 fi diff --git a/scripts/test_subfolders_full.sh b/scripts/test_subfolders_full.sh index 3ea7c9d..a1991ea 100644 --- a/scripts/test_subfolders_full.sh +++ b/scripts/test_subfolders_full.sh @@ -13,7 +13,7 @@ for dir in $(find . -name "go.mod" -not -path "./go.mod" -not -path "*/testdata/ done # Check if any test failed and exit with a non-zero status -if [ "$any_test_failed" -ne 0 ]; then +if [[ "$any_test_failed" -ne 0 ]]; then echo "The tests did not pass. Please check the errors above." exit 1 fi