From 55a1ad42bd172aa235015b88c092a225ec7f4862 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 20 Oct 2022 13:21:41 -0400 Subject: tests: Add a helper for cleaning scratch And try to unmount things if the a test left them mounted. --- tests/gnu/inum_automount.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/gnu/inum_automount.sh') diff --git a/tests/gnu/inum_automount.sh b/tests/gnu/inum_automount.sh index 0149043..82f85d2 100644 --- a/tests/gnu/inum_automount.sh +++ b/tests/gnu/inum_automount.sh @@ -3,7 +3,7 @@ skip_unless test "$SUDO" skip_unless command -v systemd-mount &>/dev/null -rm -rf scratch/* +clean_scratch mkdir scratch/{foo,mnt} skip_unless sudo systemd-mount -A -o bind basic scratch/mnt -- cgit v1.2.3