From 3b5da3ff8f21f45352370efabb886383ec0b944f Mon Sep 17 00:00:00 2001 From: Ivan Nikolaev-Axenov Date: Wed, 7 May 2025 09:22:41 +0300 Subject: [PATCH] launch_and_test.sh exit code fetching fixed --- clr_test/clearing-all/launch_and_test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clr_test/clearing-all/launch_and_test.sh b/clr_test/clearing-all/launch_and_test.sh index 1fe1adc3b..ba6bb1e44 100644 --- a/clr_test/clearing-all/launch_and_test.sh +++ b/clr_test/clearing-all/launch_and_test.sh @@ -16,6 +16,8 @@ sleep 30 echo Run clearing-tester sh ./clearing_testing_utils/clearing-tester/clearing-tester.sh +TESTER_EXIT_CODE=$? + if [ -n "$CLR_TEST_NAME" ] then echo "Copying logs to ./bin/log_artifacts/${CLR_TEST_NAME}" @@ -126,7 +128,7 @@ else echo "CLR_TEST_NAME is not set. Skipping log copy." fi -if [ $? -eq 0 ] +if [ "$TESTER_EXIT_CODE" -eq "0" ] then echo "Tests passed successfully" exit 0