Skip to content

Commit

Permalink
add check if running in Gent
Browse files Browse the repository at this point in the history
  • Loading branch information
laraPPr authored Dec 19, 2024
1 parent dbac00b commit 7f773c0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bot/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ JOB_STORAGE=$(mktemp --directory --tmpdir=${STORAGE} bot_job_tmp_XXX)
echo "bot/test.sh: created unique base tmp storage directory at ${JOB_STORAGE}"

echo "bot/test.sh: MODULEPATH='${MODULEPATH}'"
echo "bot/test.sh: does it know that it is on a UGent cluster? HPCUGENT_FAMILY_CLUSTER='${HPCUGENT_FAMILY_CLUSTER}'"
module --force purge
# should be ok to this because won't cause trouble on mc clusters and if modules need to be loaded it is part of the bot script which happens after this
# Checking if it is running at Gent because than the modules need to be unloaded
if [ '$HPCUGENT_FAMILY_CLUSTER' ]; then
module --force purge
fi
echo "bot/test.sh: MODULEPATH='${MODULEPATH}'"
# obtain list of modules to be loaded
LOAD_MODULES=$(cfg_get_value "site_config" "load_modules")
Expand Down

0 comments on commit 7f773c0

Please sign in to comment.