We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3f5aef commit 47f2833Copy full SHA for 47f2833
1 file changed
.github/workflows/scripts/test_init_scripts.sh
@@ -142,8 +142,10 @@ for shell in ${SHELLS[@]}; do
142
if [ "$shell" = "bash" ] || [ "$shell" = "ksh" ] || [ "$shell" = "zsh" ]; then
143
# Typically this is a non-interactive shell, so manually set PS1 when testing
144
TEST_EESSI_PS1_UPDATE=$($shell -c "PS1='$ ' ; source init/lmod/$shell 2>/dev/null ; echo \"\$PS1\"")
145
- pattern="{EESSI/${EESSI_VERSION}}"
+ TEST_EESSI_NO_PS1_UPDATE=$($shell -c "source init/lmod/$shell 2>/dev/null ; echo \"\$PS1\"")
146
+ pattern="{EESSI/${EESSI_VERSION}} "
147
assert_raises 'echo "$TEST_EESSI_PS1_UPDATE" | grep "$pattern"'
148
+ assert_raises 'echo "$TEST_EESSI_NO_PS1_UPDATE" | grep "$pattern"' 1
149
fi
150
151
# End Test Suite
0 commit comments