summaryrefslogtreecommitdiffstats
path: root/tests/common/inum_bind_mount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/inum_bind_mount.sh')
-rw-r--r--tests/common/inum_bind_mount.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/common/inum_bind_mount.sh b/tests/common/inum_bind_mount.sh
index e35ed4e..892713e 100644
--- a/tests/common/inum_bind_mount.sh
+++ b/tests/common/inum_bind_mount.sh
@@ -1,12 +1,9 @@
-skip_unless test "$SUDO"
-skip_unless test "$UNAME" = "Linux"
+test "$UNAME" = "Linux" || skip
-clean_scratch
-"$XTOUCH" scratch/{foo,bar}
-sudo mount --bind scratch/{foo,bar}
+cd "$TEST"
+"$XTOUCH" foo bar baz
-bfs_diff scratch -inum "$(inum scratch/bar)"
-ret=$?
+bfs_sudo mount --bind foo bar || skip
+defer bfs_sudo umount bar
-sudo umount scratch/bar
-return $ret
+bfs_diff . -inum "$(inum bar)"