From 2be6c3a45a444f2ff27be89413c498ae8a1b9c9f Mon Sep 17 00:00:00 2001 From: mbeidler3 Date: Fri, 1 Nov 2024 10:12:41 -0400 Subject: [PATCH] fixing exit code to be set from ctest return value --- ci_stub/onyx_job_test_gpu.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ci_stub/onyx_job_test_gpu.sh b/ci_stub/onyx_job_test_gpu.sh index 7cd03556..0b267778 100755 --- a/ci_stub/onyx_job_test_gpu.sh +++ b/ci_stub/onyx_job_test_gpu.sh @@ -4,6 +4,11 @@ env | grep JOB_COUNT JOB_COUNT=1 +pushd ./KORC/build_gpu >/dev/null + +ctest --output-on-failure +testexit=$? + pushd ./bin >/dev/null for j in "mars_test" "egyro_test"; do @@ -15,9 +20,12 @@ for j in "mars_test" "egyro_test"; do done done -pushd ./KORC/build_gpu >/dev/null - -ctest --output-on-failure - popd >/dev/null popd >/dev/null + +if [ $testexit -eq 0 ] +then + exit 0 +else + exit 1 +fi \ No newline at end of file