Skip to content

Commit 3c236bf

Browse files
committed
add test for '--repository None' option
1 parent 83939af commit 3c236bf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/test_eessi_container_script.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- help
1818
- listrepos_default
1919
- listrepos_custom
20+
- no_cvmfs_mounts
2021
- run
2122
- shell
2223
- container
@@ -70,6 +71,14 @@ jobs:
7071
./eessi_container.sh --verbose --list-repos | tee ${outfile2}
7172
grep "EESSI/20AB.CD" ${outfile2}
7273
74+
# test use of --repository None
75+
elif [[ ${{matrix.SCRIPT_TEST}} == 'no_cvmfs_mount' ]]; then
76+
outfile=out_nocvmfs.txt
77+
./eessi_container.sh --verbose --repository None --mode run mount | tee ${outfile}
78+
# make sure that there are no CVMFS mounts in the container, i.e. mount does not have any lines line:
79+
# cvmfs2 on /cvmfs/...
80+
! grep "^cvmfs" ${outfile}
81+
7382
# test use of --mode run
7483
elif [[ ${{matrix.SCRIPT_TEST}} == 'run' ]]; then
7584
outfile=out_run.txt

0 commit comments

Comments
 (0)