From d8794a1f3b0decf07e9ebff7808c53ac562d147b Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Thu, 16 Jan 2025 10:49:59 +0100 Subject: [PATCH] Make the ReFrame args configurable through environment in which the bot instance runs. --- test_suite.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test_suite.sh b/test_suite.sh index a337ce48b6..d587e5a626 100755 --- a/test_suite.sh +++ b/test_suite.sh @@ -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"