Skip to content

Commit 0eb5394

Browse files
committed
make sure we use current sources as EESSI_CVMFS_REPO
1 parent 13da616 commit 0eb5394

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
@@ -169,8 +169,8 @@ for shell in ${SHELLS[@]}; do
169169
prompt="\$(echo '\['✘) $ "
170170
promptstr="\[✘ $ "
171171
updated_promptstr="{EESSI/${EESSI_VERSION}} \[✘ $ "
172-
TEST_EESSI_PS1_UPDATE=$($shell -c "unset PS1 ; PS1=\"$prompt\" ; . init/lmod/$shell >/dev/null 2>&1 ; echo \"\$PS1\"")
173-
TEST_EESSI_PS1_REVERT=$($shell -c "unset PS1 ; PS1=\"$prompt\" ; . init/lmod/$shell >/dev/null 2>&1 ; module purge; echo \"\$PS1\"")
172+
TEST_EESSI_PS1_UPDATE=$($shell -c "unset PS1 ; PS1=\"$prompt\" ; EESSI_CVMFS_REPO=$PWD . init/lmod/$shell >/dev/null 2>&1 ; echo \"\$PS1\"")
173+
TEST_EESSI_PS1_REVERT=$($shell -c "unset PS1 ; PS1=\"$prompt\" ; EESSI_CVMFS_REPO=$PWD . init/lmod/$shell >/dev/null 2>&1 ; module purge; echo \"\$PS1\"")
174174
assert 'echo "$TEST_EESSI_PS1_UPDATE"' "$updated_promptstr"
175175
assert 'echo "$TEST_EESSI_PS1_REVERT"' "$promptstr"
176176
fi

0 commit comments

Comments
 (0)