Skip to content

Commit

Permalink
Make the ReFrame args configurable through environment in which the b…
Browse files Browse the repository at this point in the history
…ot instance runs.
  • Loading branch information
Caspar van Leeuwen committed Jan 16, 2025
1 parent 65e4c36 commit d8794a1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,18 @@ else
fatal_error "Failed to extract names of tests to run: ${REFRAME_NAME_ARGS}"
exit ${test_selection_exit_code}
fi
export REFRAME_ARGS="--tag CI --tag 1_node --nocolor ${REFRAME_NAME_ARGS}"
# Allow people deploying the bot to overrwide this
if [ -z "$REFRAME_SCALE_TAG" ]; then
REFRAME_SCALE_TAGS="--tag 1_node"
fi
if [ -z "$REFRAME_CI_TAG" ]; then
REFRAME_CI_TAG="--tag CI"
fi
# Allow bot-deployers to add additional args through the environment
if [ -z "$REFRAME_ADDITIONAL_ARGS" ]; then
REFRAME_ADDITIONAL_ARGS=""
fi
export REFRAME_ARGS="${REFRAME_CI_TAG} ${REFRAME_SCALE_TAG} ${REFRAME_ADDITIONAL_ARGS} --nocolor ${REFRAME_NAME_ARGS}"

# List the tests we want to run
echo "Listing tests: reframe ${REFRAME_ARGS} --list"
Expand Down

0 comments on commit d8794a1

Please sign in to comment.