summaryrefslogtreecommitdiffstats
path: root/tests/common/inum_mount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common/inum_mount.sh')
-rw-r--r--tests/common/inum_mount.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/common/inum_mount.sh b/tests/common/inum_mount.sh
index 7cc5e40..91d06e2 100644
--- a/tests/common/inum_mount.sh
+++ b/tests/common/inum_mount.sh
@@ -3,10 +3,8 @@ test "$UNAME" = "Darwin" && skip
clean_scratch
mkdir scratch/{foo,mnt}
+
sudo mount -t tmpfs tmpfs scratch/mnt
+trap "sudo umount scratch/mnt" EXIT
bfs_diff scratch -inum "$(inum scratch/mnt)"
-ret=$?
-
-sudo umount scratch/mnt
-return $ret