Skip to content

Commit c9b81ba

Browse files
committed
improve pattern check in test for using unionfs as overlay-tool
1 parent d96fb6f commit c9b81ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test_eessi_container_script.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ jobs:
143143
echo 'ls -ld /cvmfs*/software.eessi.io/*' > test_script.sh
144144
chmod u+x test_script.sh
145145
./eessi_container.sh --verbose --container ${container} --access rw --overlay-tool unionfs --mode run /test/test_script.sh 2>&1 | tee ${outfile}
146-
grep "/cvmfs/software.eessi.io/versions" $outfile
147-
grep "/cvmfs_ro/software.eessi.io/versions" $outfile
146+
for pattern in "/cvmfs/software.eessi.io/versions" "/cvmfs_ro/software.eessi.io/versions"; do
147+
grep "${pattern}" $outfile || (echo "Pattern '${pattern}' not found in $outfile"; exit 1)
148+
done
148149
149150
else
150151
echo "Unknown test case: ${{matrix.SCRIPT_TEST}}" >&2

0 commit comments

Comments
 (0)