summaryrefslogtreecommitdiffstats
path: root/tests/posix/type_bind_mount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/posix/type_bind_mount.sh')
-rw-r--r--tests/posix/type_bind_mount.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/posix/type_bind_mount.sh b/tests/posix/type_bind_mount.sh
index 445f6ef..97b7305 100644
--- a/tests/posix/type_bind_mount.sh
+++ b/tests/posix/type_bind_mount.sh
@@ -1,12 +1,9 @@
-skip_unless test "$SUDO"
-skip_unless test "$UNAME" = "Linux"
+test "$UNAME" = "Linux" || skip
-clean_scratch
-"$XTOUCH" scratch/{file,null}
-sudo mount --bind /dev/null scratch/null
+cd "$TEST"
+"$XTOUCH" file null
-bfs_diff scratch -type c
-ret=$?
+bfs_sudo mount --bind /dev/null null || skip
+defer bfs_sudo umount null
-sudo umount scratch/null
-return $ret
+bfs_diff . -type c