Skip to content

Commit 95d1de6

Browse files
committed
add check for warning message when using the run mode
1 parent 2c79922 commit 95d1de6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/test_eessi_container_script.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,17 @@ jobs:
8888
./eessi_container.sh --verbose --mode exec /test/test_script.sh | tee ${outfile}
8989
grep "${out_pattern}" ${outfile}
9090
91+
# test use of --mode run, which should now print a warning
92+
elif [[ ${{matrix.SCRIPT_TEST}} == 'run' ]]; then
93+
outfile=out_run.txt
94+
echo "${test_cmd}" > test_script.sh
95+
chmod u+x test_script.sh
96+
export SINGULARITY_BIND="$PWD:/test"
97+
./eessi_container.sh --verbose --mode run /test/test_script.sh | tee ${outfile}
98+
grep "${out_pattern}" ${outfile}
99+
warn_message="Note: the behaviour of the run mode has changed."
100+
grep "${warn_message}" ${outfile}
101+
91102
# test use of --mode shell
92103
elif [[ ${{matrix.SCRIPT_TEST}} == 'shell' ]]; then
93104
outfile=out_shell.txt

0 commit comments

Comments
 (0)