Skip to content

Commit c53f578

Browse files
authored
pass down --generic to script used for running test suite, so tests are run with generic software installations when intended
1 parent 8d05473 commit c53f578

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ source ${base_dir}/init/eessi_defaults
2121
./run_in_compat_layer_env.sh "git clone https://github.com/EESSI/test-suite EESSI-test-suite"
2222

2323
# Run the test suite
24-
./test_suite.sh
24+
./test_suite.sh "$@"

test_suite.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ POSITIONAL_ARGS=()
2323
while [[ $# -gt 0 ]]; do
2424
case $1 in
2525
-g|--generic)
26-
EASYBUILD_OPTARCH="GENERIC"
26+
DETECTION_PARAMETERS="--generic"
2727
shift
2828
;;
2929
-h|--help)
@@ -75,10 +75,9 @@ TMPDIR=$(mktemp -d)
7575

7676
echo ">> Setting up environment..."
7777
module --force purge
78-
# Make sure defaults are set for EESSI_CVMFS_REPO and EESSI_VERSION, before initializing EESSI
79-
source $TOPDIR/init/eessi_defaults
80-
# Initialize EESSI
81-
source ${EESSI_CVMFS_REPO}/versions/${EESSI_VERSION}/init/bash
78+
export EESSI_SOFTWARE_SUBDIR_OVERRIDE=$(python3 $TOPDIR/eessi_software_subdir.py $DETECTION_PARAMETERS)
79+
80+
source $TOPDIR/init/bash
8281

8382
# Load the ReFrame module
8483
# Currently, we load the default version. Maybe we should somehow make this configurable in the future?

0 commit comments

Comments
 (0)