Skip to content

Commit 5b93cd8

Browse files
committed
clean up some debug output and rearrange output processing
1 parent cac1100 commit 5b93cd8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/scripts/test_init_scripts.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,8 @@ for shell in ${SHELLS[@]}; do
5353
# TEST 4: Load EasyBuild module and check version
5454
# eb --version outputs: "This is EasyBuild 5.1.1 (framework: 5.1.1, easyblocks: 5.1.1) on host ..."
5555
if [ "$shell" = "csh" ]; then
56-
echo "source init/lmod/$shell >& /dev/null" > ~/.cshrc
57-
echo "TEST COMMANDS (just module load)"
58-
$shell -c "module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}"
59-
echo "TEST COMMANDS (module load and eb --version ...)"
60-
$shell -c "module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}; eb --version | cut -d \" \" -f4"
61-
command="$shell -c 'module load EasyBuild/${EXPECTED_EASYBUILD_VERSION} >& /dev/null; eb --version | cut -d \" \" -f4'"
56+
echo "source init/lmod/$shell" > ~/.cshrc
57+
command="$shell -c 'module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}; eb --version' | cut -d \" \" -f4"
6258
else
6359
command="$shell -c 'source init/lmod/$shell 2>/dev/null; module load EasyBuild/${EXPECTED_EASYBUILD_VERSION}; eb --version | cut -d \" \" -f4'"
6460
fi

0 commit comments

Comments
 (0)