Skip to content

Commit 2c79922

Browse files
committed
use mode exec instead of run
1 parent d5362ab commit 2c79922

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/tests_scripts.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
8686
# run wrapper script + capture & check output
8787
out="${PWD}/eb-${EB_VERSION}.out"
88-
./eessi_container.sh --access rw --mode run --verbose /software-layer-scripts/run_in_compat_layer_env.sh /software-layer-scripts/eb-${EB_VERSION}.sh 2>&1 | tee ${out}
88+
./eessi_container.sh --access rw --mode exec --verbose /software-layer-scripts/run_in_compat_layer_env.sh /software-layer-scripts/eb-${EB_VERSION}.sh 2>&1 | tee ${out}
8989
pattern="^This is EasyBuild ${EB_VERSION} "
9090
grep "${pattern}" ${out} || (echo "Pattern '${pattern}' not found in output!" && exit 1)
9191
done
@@ -103,7 +103,7 @@ jobs:
103103
# make sure that correct EESSI version is used (required because default is a placeholder version)
104104
export EESSI_VERSION_OVERRIDE="${{matrix.EESSI_VERSION}}"
105105
106-
./eessi_container.sh --mode run --verbose /software-layer-scripts/install_software_layer.sh
106+
./eessi_container.sh --mode exec --verbose /software-layer-scripts/install_software_layer.sh
107107
108108
- name: test create_directory_tarballs.sh script
109109
run: |
@@ -116,7 +116,7 @@ jobs:
116116
117117
# scripts need to be copied to /tmp,
118118
# since create_directory_tarballs.sh must be accessible from within build container
119-
./eessi_container.sh --mode run --verbose /software-layer-scripts/create_directory_tarballs.sh "${{matrix.EESSI_VERSION}}"
119+
./eessi_container.sh --mode exec --verbose /software-layer-scripts/create_directory_tarballs.sh "${{matrix.EESSI_VERSION}}"
120120
# check if tarballs have been produced
121121
ls -l *.tar.gz
122122
@@ -140,7 +140,7 @@ jobs:
140140
export EESSI_VERSION_OVERRIDE="${{matrix.EESSI_VERSION}}"
141141
142142
out="${PWD}/test_create_lmodsitepackage.out"
143-
./eessi_container.sh --mode run --verbose /software-layer-scripts/run_in_compat_layer_env.sh /software-layer-scripts/test_lmod_sitepackage.sh 2>&1 | tee ${out}
143+
./eessi_container.sh --mode exec --verbose /software-layer-scripts/run_in_compat_layer_env.sh /software-layer-scripts/test_lmod_sitepackage.sh 2>&1 | tee ${out}
144144
for pattern in "^Site Pkg location.*/software-layer-scripts/.lmod/SitePackage.lua" "LMOD_SITEPACKAGE_LOCATION.*/software-layer-scripts/.lmod/SitePackage.lua"; do
145145
grep "${pattern}" ${out} || (echo "Pattern '${pattern}' not found in output!" && exit 1)
146146
done
@@ -160,6 +160,6 @@ jobs:
160160
export EESSI_VERSION_OVERRIDE="${{matrix.EESSI_VERSION}}"
161161
162162
out="${PWD}/eb-${EB_VERSION}.out"
163-
./eessi_container.sh --repository software.eessi.io,access=rw,mount=bind --mode run --verbose /software-layer-scripts/run_in_compat_layer_env.sh ls 2>&1 | tee ${out}
163+
./eessi_container.sh --repository software.eessi.io,access=rw,mount=bind --mode exec --verbose /software-layer-scripts/run_in_compat_layer_env.sh ls 2>&1 | tee ${out}
164164
echo $(grep "SINGULARITY_BIND" ${out})
165165
grep "SINGULARITY_BIND" ${out} | grep "software.eessi.io" || (echo "software.eessi.io did not seem to be bind mounted!" && exit 1)

0 commit comments

Comments
 (0)