From 3780856f7503096e01a64f19eb6051b765db252e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 13 Oct 2023 13:52:01 -0400 Subject: tests: Always create the scratch directory Otherwise, some tests that try to check for flag support like invoke_bfs scratch -quit -xattr || skip can be accidentally skipped if ./scratch doesn't exist yet: $ ./tests/tests.sh bsd/xattr tests skipped: 1 After this patch, we get the expected $ ./tests/tests.sh bsd/xattr tests passed: 1 --- tests/tests.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/tests.sh') diff --git a/tests/tests.sh b/tests/tests.sh index f233f74..61e4aba 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -437,6 +437,8 @@ function make_rainbow() { } make_rainbow "$TMP/rainbow" +mkdir "$TMP/scratch" + # Close stdin so bfs doesn't think we're interactive exec