Skip to content

Commit 05ca0d7

Browse files
ttaylorrgitster
authored andcommitted
t/perf/lib-bitmap.sh: avoid test_perf during setup
In the test_pack_bitmap() helper function, we first repack the repository under test for consistency and to eliminate any effects from different distributions of objects among packs. This step is performed with test_perf, so it is repeated $GIT_PERF_REPEAT_COUNT number of times. But we do not care about timing this portion of the setup phase, and repeating the process does not change the outcome. Use test_expect_success to avoid spending time repeating an idempotent portion of the setup for performance tests that use test_pack_bitmap(). Signed-off-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c9d41a4 commit 05ca0d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/perf/lib-bitmap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ test_partial_bitmap () {
6969
}
7070

7171
test_pack_bitmap () {
72-
test_perf "repack to disk" '
72+
test_expect_success "repack to disk" '
7373
git repack -ad
7474
'
7575

0 commit comments

Comments
 (0)