summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-10-20 15:35:44 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-10-20 15:36:29 -0400
commit62de5e2bc9a39b189a84ff0691efeb8518f1688a (patch)
treefc6c8d89f0b3eb7848f4955a9f6b3f797a3d3fc5 /tests
parent55a1ad42bd172aa235015b88c092a225ec7f4862 (diff)
downloadbfs-62de5e2bc9a39b189a84ff0691efeb8518f1688a.tar.xz
tests: Always clean scratch before using it
Diffstat (limited to 'tests')
-rw-r--r--tests/common/L_ls.sh1
-rw-r--r--tests/common/ls.sh1
-rw-r--r--tests/gnu/files0_from_file.sh1
-rw-r--r--tests/gnu/fls.sh1
4 files changed, 4 insertions, 0 deletions
diff --git a/tests/common/L_ls.sh b/tests/common/L_ls.sh
index d886791..ced16c6 100644
--- a/tests/common/L_ls.sh
+++ b/tests/common/L_ls.sh
@@ -1 +1,2 @@
+clean_scratch
invoke_bfs -L rainbow -ls >scratch/L_ls.out
diff --git a/tests/common/ls.sh b/tests/common/ls.sh
index b49a2d5..85ca39c 100644
--- a/tests/common/ls.sh
+++ b/tests/common/ls.sh
@@ -1 +1,2 @@
+clean_scratch
invoke_bfs rainbow -ls >scratch/ls.out
diff --git a/tests/gnu/files0_from_file.sh b/tests/gnu/files0_from_file.sh
index 7563149..089a20e 100644
--- a/tests/gnu/files0_from_file.sh
+++ b/tests/gnu/files0_from_file.sh
@@ -1,3 +1,4 @@
+clean_scratch
cd weirdnames
invoke_bfs -mindepth 1 -fprintf ../scratch/files0.in "%P\0"
bfs_diff -files0-from ../scratch/files0.in
diff --git a/tests/gnu/fls.sh b/tests/gnu/fls.sh
index 94e2c16..a86fa20 100644
--- a/tests/gnu/fls.sh
+++ b/tests/gnu/fls.sh
@@ -1 +1,2 @@
+clean_scratch
invoke_bfs rainbow -fls scratch/fls.out