summaryrefslogtreecommitdiffstats
path: root/tests/gnu/inum_automount.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-12-16 14:17:07 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-12-16 14:17:07 -0500
commite01042b84abdfa224d47e6d11eb9798ce4c7d2f8 (patch)
treef55d5e3adfa5a5fb23119d9b149c76c289c12a0d /tests/gnu/inum_automount.sh
parent681f14f7cdff2d8fae235b8fd09745cfcb93e666 (diff)
downloadbfs-e01042b84abdfa224d47e6d11eb9798ce4c7d2f8.tar.xz
tests: Replace skip_unless test with test || skip
Diffstat (limited to 'tests/gnu/inum_automount.sh')
-rw-r--r--tests/gnu/inum_automount.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gnu/inum_automount.sh b/tests/gnu/inum_automount.sh
index 648ea05..6bf2977 100644
--- a/tests/gnu/inum_automount.sh
+++ b/tests/gnu/inum_automount.sh
@@ -1,11 +1,11 @@
# bfs shouldn't trigger automounts unless it descends into them
-skip_unless test "$SUDO"
-skip_unless command -v systemd-mount &>/dev/null
+test "$SUDO" || skip
+command -v systemd-mount &>/dev/null || skip
clean_scratch
mkdir scratch/{foo,automnt}
-skip_unless sudo systemd-mount -A -o bind basic scratch/automnt
+sudo systemd-mount -A -o bind basic scratch/automnt || skip
before=$(inum scratch/automnt)
bfs_diff scratch -inum "$before" -prune