Skip to content

Commit

Permalink
Merge pull request #886 from bedroge/fix_use_latest_testsuite_release…
Browse files Browse the repository at this point in the history
…_for_test_step

Make sure the latest release of the test suite is used (#880 + fix)
  • Loading branch information
boegel authored Jan 24, 2025
2 parents 152414b + 86ae593 commit 9af8394
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
base_dir=$(dirname $(realpath $0))
source ${base_dir}/init/eessi_defaults

# Make sure we clone the latest version. This assumes versions are of the format "v1.2.3", then picks the latest
# then checks it out
TEST_CLONE="git clone https://github.com/EESSI/test-suite EESSI-test-suite && cd EESSI-test-suite"
LATEST_VERSION="VERSION=\$(git tag | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+$' | sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -1)"
CHECKOUT_LATEST="git checkout \${VERSION}"

# Git clone has to be run in compat layer, to make the git command available
./run_in_compat_layer_env.sh "git clone https://github.com/EESSI/test-suite EESSI-test-suite"
./run_in_compat_layer_env.sh "${TEST_CLONE} && ${LATEST_VERSION} && ${CHECKOUT_LATEST}"

# Run the test suite
./test_suite.sh "$@"

0 comments on commit 9af8394

Please sign in to comment.