@@ -103,16 +103,11 @@ jobs:
103103 # and are only run after the PR gets merged
104104 GITHUB_TOKEN : ${{secrets.CI_UNIT_TESTS_GITHUB_TOKEN}}
105105 run : |
106- # don't install GitHub token when testing with Lmod 7.x or non-Lmod module tools,
107- # and only when testing with Lua as module syntax,
108- # to avoid hitting GitHub rate limit;
106+ # don't install GitHub token when testing with Lmod 7.x or non-Lmod module tools, to avoid hitting GitHub rate limit;
109107 # tests that require a GitHub token are skipped automatically when no GitHub token is available
110108 if [[ ! "${{matrix.modules_tool}}" =~ 'Lmod-7' ]] && [[ ! "${{matrix.modules_tool}}" =~ 'modules-' ]]; then
111109 if [ ! -z $GITHUB_TOKEN ]; then
112- if [ "x${{matrix.python}}" == 'x2.6' ];
113- then SET_KEYRING="keyring.set_keyring(keyring.backends.file.PlaintextKeyring())";
114- else SET_KEYRING="import keyrings.alt.file; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())";
115- fi;
110+ SET_KEYRING="import keyrings.alt.file; keyring.set_keyring(keyrings.alt.file.PlaintextKeyring())";
116111 python -c "import keyring; $SET_KEYRING; keyring.set_password('github_token', 'easybuild_test', '$GITHUB_TOKEN')";
117112 fi
118113 echo "GitHub token installed!"
@@ -174,17 +169,18 @@ jobs:
174169 else
175170 export EASYBUILD_MODULES_TOOL=Lmod
176171 fi
177- export TEST_EASYBUILD_MODULES_TOOL=$EASYBUILD_MODULES_TOOL
172+ export TEST_EASYBUILD_MODULES_TOOL=${ EASYBUILD_MODULES_TOOL}
178173
179174 # Run tests with LUA and Tcl module syntax (where supported)
180175 for module_syntax in Lua Tcl; do
181176 # Only Lmod supports Lua
182- if [[ "$module_syntax" == "Lua" ]] && [[ "$EASYBUILD_MODULES_TOOL" != "Lmod" ]]; then
177+ if [[ "${module_syntax}" == "Lua" ]] && [[ "${EASYBUILD_MODULES_TOOL}" != "Lmod" ]]; then
178+ echo "Not testing with '${module_syntax}' as module syntax with '${EASYBUILD_MODULES_TOOL}' as modules tool"
183179 continue
184180 fi
185181 printf '\n\n=====================> Using $module_syntax module syntax <=====================\n\n'
186- export EASYBUILD_MODULE_SYNTAX="$module_syntax"
187- export TEST_EASYBUILD_MODULE_SYNTAX="$EASYBUILD_MODULE_SYNTAX"
182+ export EASYBUILD_MODULE_SYNTAX="${ module_syntax} "
183+ export TEST_EASYBUILD_MODULE_SYNTAX="${ EASYBUILD_MODULE_SYNTAX} "
188184
189185 eb --show-config
190186 # gather some useful info on test system
@@ -198,7 +194,7 @@ jobs:
198194 python -O -m test.framework.suite 2>&1 | tee test_framework_suite.log
199195 # try and make sure output of running tests is clean (no printed messages/warnings)
200196 IGNORE_PATTERNS="no GitHub token available|skipping SvnRepository test|requires Lmod as modules tool|stty: 'standard input': Inappropriate ioctl for device|CryptographyDeprecationWarning: Python 3.[56]|from cryptography.* import |CryptographyDeprecationWarning: Python 2|Blowfish|GC3Pie not available, skipping test"
201- # '|| true' is needed to avoid that Travis stops the job on non-zero exit of grep (i.e. when there are no matches)
197+ # '|| true' is needed to avoid that GitHub Actions stops the job on non-zero exit of grep (i.e. when there are no matches)
202198 PRINTED_MSG=$(egrep -v "${IGNORE_PATTERNS}" test_framework_suite.log | grep '\.\n*[A-Za-z]' || true)
203199 test "x$PRINTED_MSG" = "x" || (echo "ERROR: Found printed messages in output of test suite" && echo "${PRINTED_MSG}" && exit 1)
204200 done
0 commit comments