From 7f773c0071de39708a9528cba22ea48b98e72358 Mon Sep 17 00:00:00 2001 From: Lara Ramona Peeters <49882639+laraPPr@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:11:31 +0100 Subject: [PATCH] add check if running in Gent --- bot/test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bot/test.sh b/bot/test.sh index 44fd8a39c3..d16d37bbab 100755 --- a/bot/test.sh +++ b/bot/test.sh @@ -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")