Skip to content

Commit c662693

Browse files
committed
t0060: speed up things when EXPENSIVE prereq is not set
For some reason it looks like the "manyfiles" directory is not removed between tests on my machine, so let's use "rm -rf" to make sure.
1 parent cb4bb0f commit c662693

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

sharness/t0060-migration-stress.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,26 @@ test_description="Test migration 2 to 3 with lots of objects"
77
# setup vars for tests
88

99
DEPTH=3
10-
PINTOTAL=200
10+
NBDIR=3
11+
NBFILE=6
12+
PINTOTAL=20
1113

1214
if test_have_prereq EXPENSIVE
1315
then
1416
DEPTH=6
17+
NBDIR=7
18+
NBFILE=10
1519
PINTOTAL=2000
1620
fi
1721

1822
PINEACH=$(expr $PINTOTAL / 2)
1923

24+
echo "DEPTH: $DEPTH"
25+
echo "NBDIR: $NBDIR"
26+
echo "NBFILE: $NBFILE"
27+
echo "PINTOTAL: $PINTOTAL"
28+
echo "PINEACH: $PINEACH"
29+
2030
test_expect_success "start a docker container" '
2131
DOCID=$(start_docker)
2232
'
@@ -51,7 +61,8 @@ test_init_daemon "$DOCID"
5161
test_start_daemon "$DOCID"
5262

5363
test_expect_success "make a couple files" '
54-
drun "$GUEST_RANDOM_FILES -depth=$DEPTH -dirs=7 -files=10 manyfiles" > filenames
64+
drun "rm -rf manyfiles" &&
65+
drun "$GUEST_RANDOM_FILES -depth=$DEPTH -dirs=$NBDIR -files=$NBFILE manyfiles" > filenames
5566
'
5667

5768
test_expect_success "add a few files" '

0 commit comments

Comments
 (0)