summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-10-13 13:52:01 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-10-13 14:17:53 -0400
commit3780856f7503096e01a64f19eb6051b765db252e (patch)
tree9dbf272cf39d981e32cd7ef98f78d10e19e95068
parent6539791c7da12ab9e1dcca445faf1cd0b0bb302a (diff)
downloadbfs-3780856f7503096e01a64f19eb6051b765db252e.tar.xz
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
-rwxr-xr-xtests/tests.sh2
1 files changed, 2 insertions, 0 deletions
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 </dev/null