Skip to content

Commit

Permalink
fixing exit code to be set from ctest return value
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeidler3 committed Nov 1, 2024
1 parent 4ecec84 commit 2be6c3a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions ci_stub/onyx_job_test_gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 2be6c3a

Please sign in to comment.