diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-12-16 15:32:04 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-12-16 15:32:04 -0500 |
commit | e50c19f284dad6b4b7b79f91cc8576a97626be8a (patch) | |
tree | 3fc7b15a412d4123d403bca6fdbf3225389926e1 /tests/common/inum_bind_mount.sh | |
parent | 7d87b96b421b76e387cee903b7b7c1bc16c54310 (diff) | |
download | bfs-e50c19f284dad6b4b7b79f91cc8576a97626be8a.tar.xz |
tests: Turn on set -e
Diffstat (limited to 'tests/common/inum_bind_mount.sh')
-rw-r--r-- | tests/common/inum_bind_mount.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/common/inum_bind_mount.sh b/tests/common/inum_bind_mount.sh index a9e01bf..625ee3d 100644 --- a/tests/common/inum_bind_mount.sh +++ b/tests/common/inum_bind_mount.sh @@ -3,10 +3,8 @@ test "$UNAME" = "Linux" || skip clean_scratch "$XTOUCH" scratch/{foo,bar} + sudo mount --bind scratch/{foo,bar} +trap "sudo umount scratch/bar" EXIT bfs_diff scratch -inum "$(inum scratch/bar)" -ret=$? - -sudo umount scratch/bar -return $ret |