Skip to content

Commit 90f3e8d

Browse files
committed
discard some error messages + use here-string in last test too
1 parent 56cb0d7 commit 90f3e8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/scripts/test_init_scripts.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ for shell in ${SHELLS[@]}; do
4343
# be run; the output is then processed as for other shells
4444
echo "source init/lmod/$shell 2> /dev/null" > ~/.cshrc
4545
cat ~/.cshrc
46-
$shell -l <<< "alias"
46+
$shell -l <<< "alias" 2> /dev/null
4747
MODULE_SECTIONS=($($shell -l <<< "module ov" 2>&1 | grep -e '---'))
4848
else
4949
MODULE_SECTIONS=($($shell -c "source init/lmod/$shell 2>/dev/null; module ov 2>&1 | grep -e '---'"))
@@ -57,7 +57,7 @@ for shell in ${SHELLS[@]}; do
5757
if [ "$shell" = "csh" ]; then
5858
echo "source init/lmod/$shell 2> /dev/null" > ~/.cshrc
5959
cat ~/.cshrc
60-
$shell -l <<< "alias"
60+
$shell -l <<< "alias" 2> /dev/null
6161
command="$shell -l <<< 'module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}; eb --version | cut -d \" \" -f4'"
6262
else
6363
command="$shell -c 'source init/lmod/$shell 2>/dev/null; module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}; eb --version | cut -d \" \" -f4'"
@@ -67,8 +67,8 @@ for shell in ${SHELLS[@]}; do
6767
if [ "$shell" = "csh" ]; then
6868
echo "source init/lmod/$shell 2> /dev/null" > ~/.cshrc
6969
cat ~/.cshrc
70-
$shell -l <<< "alias"
71-
EASYBUILD_PATH=$($shell -l "module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}; which eb")
70+
$shell -l <<< "alias" 2> /dev/null
71+
EASYBUILD_PATH=$($shell -l <<< "module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}; which eb")
7272
else
7373
EASYBUILD_PATH=$($shell -c "source init/lmod/$shell 2>/dev/null; module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}; which eb")
7474
fi

0 commit comments

Comments
 (0)