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/posix/xdev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/posix/xdev.sh') diff --git a/tests/posix/xdev.sh b/tests/posix/xdev.sh index cbb3347..7c26c3f 100644 --- a/tests/posix/xdev.sh +++ b/tests/posix/xdev.sh @@ -1,7 +1,7 @@ skip_unless test "$SUDO" skip_if test "$UNAME" = "Darwin" -rm -rf scratch/* +clean_scratch mkdir scratch/{foo,mnt} sudo mount -t tmpfs tmpfs scratch/mnt $TOUCH scratch/foo/bar scratch/mnt/baz -- cgit v1.2.3