Skip to content

Commit e102036

Browse files
committed
tests: improve directories cleaner
1 parent de7a165 commit e102036

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/run.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,25 @@ echo nopenopenope > /tmp/zdbtest-index/default/zdb-index-00000
7474
./zdbd/zdb --verbose --data /tmp/zdbtest-data/ --index /tmp/zdbtest-index/ --dump || true
7575

7676
# clean
77-
rm -rf /tmp/zdbtest-data
78-
rm -rf /tmp/zdbtest-index
77+
rm -rf /tmp/zdbtest-data /tmp/zdbtest-index
7978

8079
# test protected mode
8180
./zdbd/zdb --data /tmp/zdbtest-data --index /tmp/zdbtest-index --dump --protect || true
8281
./zdbd/zdb --data /tmp/zdbtest-data --index /tmp/zdbtest-index --dump --protect --admin helloworld
8382
./zdbd/zdb --data /tmp/zdbtest-data --index /tmp/zdbtest-index --dump --maxsize 131072
84-
rm -rf /tmp/zdbtest
83+
rm -rf /tmp/zdbtest-data /tmp/zdbtest-index
8584

8685
# create empty dataset in direct mode
8786
./zdbd/zdb --data /tmp/zdbtest-data --index /tmp/zdbtest-index --dump --mode direct
88-
rm -rf /tmp/zdbtest
87+
rm -rf /tmp/zdbtest-data /tmp/zdbtest-index
8988

9089
# create empty dataset in sequential mode
9190
./zdbd/zdb --data /tmp/zdbtest-data --index /tmp/zdbtest-index --dump --mode seq
92-
rm -rf /tmp/zdbtest
91+
rm -rf /tmp/zdbtest-data /tmp/zdbtest-index
9392

9493
# trying non existing mode
9594
./zdbd/zdb --data /tmp/zdbtest-data --index /tmp/zdbtest-index --dump --mode nonexist || true
96-
rm -rf /tmp/zdbtest
95+
rm -rf /tmp/zdbtest-data /tmp/zdbtest-index
9796

9897
# run tests in sequential mode
9998
./zdbd/zdb --background --socket /tmp/zdb.sock --data /tmp/zdbtest-data --index /tmp/zdbtest-index --mode seq

0 commit comments

Comments
 (0)