Skip to content

Commit

Permalink
Merge pull request #599 from swick/wip/mnt-symlink-test
Browse files Browse the repository at this point in the history
tests: Skip test when host /mnt is a symlink
  • Loading branch information
smcv authored Oct 1, 2023
2 parents 9746842 + ad09be9 commit 4a7bb29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ if command -v mktemp > /dev/null; then
$BWRAP --bind / / --bind /tmp /tmp cat "$tempfile" > stdout
assert_file_has_content stdout hello
echo "ok - bind-mount of /tmp exposes real /tmp"
if [ -d /mnt ]; then
if [ -d /mnt ] && [ ! -L /mnt ]; then
$BWRAP --bind / / --bind /tmp /mnt cat "/mnt/${tempfile#/tmp/}" > stdout
assert_file_has_content stdout hello
echo "ok - bind-mount of /tmp onto /mnt exposes real /tmp"
else
echo "ok - # SKIP /mnt does not exist"
echo "ok - # SKIP /mnt does not exist or is a symlink"
fi
else
echo "ok - # SKIP mktemp not found"
Expand Down

0 comments on commit 4a7bb29

Please sign in to comment.