Skip to content

Commit c6a29cd

Browse files
committed
another try
1 parent 7094564 commit c6a29cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/scripts/test_init_scripts.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ for shell in ${SHELLS[@]}; do
173173
prompt="\$(echo '\['✘) $ "
174174
promptstr="\[✘ $ "
175175
updated_promptstr="{EESSI/${EESSI_VERSION}} \[✘ $ "
176-
TEST_EESSI_PS1_UPDATE=$($shell -c "unset PS1 ; PS1=\"$prompt\" ; export EESSI_CVMFS_REPO=$PWD ; . init/lmod/$shell.test >/dev/null 2>&1 ; echo \"\$PS1\"")
177-
TEST_EESSI_PS1_REVERT=$($shell -c "unset PS1 ; PS1=\"$prompt\" ; export EESSI_CVMFS_REPO=$PWD ; . init/lmod/$shell.test >/dev/null 2>&1 ; module purge; echo \"\$PS1\"")
176+
TEST_EESSI_PS1_UPDATE=$($shell -c "unset PS1 ; PS1=\"$prompt\" ; export EESSI_CVMFS_REPO=$PWD ; export LMOD_IGNORE_CACHE=1 ; . init/lmod/$shell.test >/dev/null ; echo \"\$PS1\"")
177+
TEST_EESSI_PS1_REVERT=$($shell -c "unset PS1 ; PS1=\"$prompt\" ; export EESSI_CVMFS_REPO=$PWD ; export LMOD_IGNORE_CACHE=1 ; . init/lmod/$shell.test >/dev/null ; module purge; echo \"\$PS1\"")
178178
assert 'echo "$TEST_EESSI_PS1_UPDATE"' "$updated_promptstr"
179179
assert 'echo "$TEST_EESSI_PS1_REVERT"' "$promptstr"
180180
fi

0 commit comments

Comments
 (0)