Skip to content

Commit

Permalink
Make sure test suite only lists. Also make sure python script that us…
Browse files Browse the repository at this point in the history
…es archspec is called in a shell that has EESSI initialized, so that archspec is available
  • Loading branch information
Caspar van Leeuwen committed Aug 15, 2024
1 parent 932d9a0 commit 8eb0710
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ echo ">> Setting up environment..."
echo "Current EESSI env:"
env | grep "EESSI"
echo "EESSI_SOFTWARE_SUBDIR_OVERRIDE before calling eessi_software_subdir.py: $EESSI_SOFTWARE_SUBDIR_OVERRIDE"
export EESSI_SOFTWARE_SUBDIR_OVERRIDE=$(python3 $TOPDIR/eessi_software_subdir.py $DETECTION_PARAMETERS)
# For this call to be succesful, it needs to be able to import archspec (which is part of EESSI)
# Thus, we execute it in a subshell where EESSI is already initialized (a bit like a bootstrap)
export EESSI_SOFTWARE_SUBDIR_OVERRIDE=$(source $TOPDIR/init/bash; python3 $TOPDIR/eessi_software_subdir.py $DETECTION_PARAMETERS)
echo "EESSI_SOFTWARE_SUBDIR_OVERRIDE after calling eessi_software_subdir.py: $EESSI_SOFTWARE_SUBDIR_OVERRIDE"

source $TOPDIR/init/bash
Expand Down Expand Up @@ -216,7 +218,9 @@ fi
echo "Running tests: reframe ${REFRAME_ARGS} --run"
# Exclude TensorFlow, which got stuck on https://github.com/EESSI/software-layer/pull/670#issuecomment-2291084266
# Let's first make sure the test suite runs on the zen4 prefix...
reframe ${REFRAME_ARGS} --run --exclude TensorFlow
#reframe ${REFRAME_ARGS} --run --exclude TensorFlow
# Limit to listing again, until we are sure we run with zen4...
reframe ${REFRAME_ARGS} --list
reframe_exit_code=$?
if [[ ${reframe_exit_code} -eq 0 ]]; then
echo_green "ReFrame runtime ran succesfully with command: reframe ${REFRAME_ARGS} --run."
Expand Down

0 comments on commit 8eb0710

Please sign in to comment.