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/depth_error.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/posix/depth_error.sh') diff --git a/tests/posix/depth_error.sh b/tests/posix/depth_error.sh index 9acf976..e1267f4 100644 --- a/tests/posix/depth_error.sh +++ b/tests/posix/depth_error.sh @@ -1,4 +1,4 @@ -rm -rf scratch/* +clean_scratch touchp scratch/foo/bar chmod a-r scratch/foo @@ -6,6 +6,6 @@ bfs_diff scratch -depth ret=$? chmod +r scratch/foo -rm -rf scratch/* +clean_scratch [ $ret -eq $EX_BFS ] -- cgit v1.2.3