Skip to content

Commit

Permalink
Make sure this actually gets reported as failure, as the ReFrame runt…
Browse files Browse the repository at this point in the history
…ime fails to run the test suite (it is not an indication of tests failing themselves).
  • Loading branch information
Caspar van Leeuwen committed Feb 6, 2024
1 parent a7b5ee1 commit f50e463
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ fi

# List the tests we want to run
export REFRAME_ARGS='--tag CI --tag 1_nodes'
reframe $REFRAME_ARGS --list
reframe ${REFRAME_ARGS} --list
if [[ $? -eq 0 ]]; then
echo_green "Succesfully listed ReFrame tests with command: reframe ${REFRAME_ARGS} --list"
else
Expand All @@ -184,6 +184,12 @@ fi

# Run all tests
reframe "${REFRAME_ARGS}" --run
if [[ $? -eq 0 ]]; then
echo_green "ReFrame runtime ran succesfully with command: reframe ${REFRAME_ARGS} --run."
else
fatal_error "ReFrame runtime failed to run with command: reframe ${REFRAME_ARGS} --run."
fi


echo ">> Cleaning up ${TMPDIR}..."
rm -r ${TMPDIR}
Expand Down

0 comments on commit f50e463

Please sign in to comment.