Skip to content

Commit

Permalink
By default, use the latest released version
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Jan 30, 2025
1 parent c5ac83c commit 594f03c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CI/run_reframe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ if [ -z "${EESSI_TESTSUITE_URL}" ]; then
EESSI_TESTSUITE_URL='https://github.com/EESSI/test-suite.git'
fi
if [ -z "${EESSI_TESTSUITE_BRANCH}" ]; then
EESSI_TESTSUITE_BRANCH='v0.5.0'
git clone -n --depth=1 --filter=tree:0 ${EESSI_TESTSUITE_URL} "${TEMPDIR}/test-suite-version-checkout"
cd "${TEMPDIR}/test-suite-version-checkout"
git fetch --tags
# This assumes we stick to a version-tagging scheme vX.Y.Z
LATEST_VERSION=$(git tag | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+$' | sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -1)
# Use the latest release by default
EESSI_TESTSUITE_BRANCH="${LATEST_VERSION}"
cd ${TEMPDIR}
fi
if [ -z "${EESSI_CONFIGS_TESTSUITE_URL}" ]; then
EESSI_CONFIGS_TESTSUITE_URL="${EESSI_TESTSUITE_URL}"
Expand Down

0 comments on commit 594f03c

Please sign in to comment.