]> git.ipfire.org Git - thirdparty/git.git/commit
t5326: extract `test_rev_exists`
authorTaylor Blau <me@ttaylorr.com>
Tue, 25 Jan 2022 22:41:10 +0000 (17:41 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Jan 2022 20:07:53 +0000 (12:07 -0800)
commitf0ed59afcce8e71efe7b7b32b66e6e896455bb1d
tree7d6c903295fe3078600999a8df2d108a70ea92a6
parent90a8ea47d88b38ececc07205f512297d8794e877
t5326: extract `test_rev_exists`

To determine which source of data is used for the MIDX's reverse index
cache, introduce a helper which forces loading the reverse index, and
then looks for the special trace2 event introduced in a previous commit.

For now, this helper just looks for when the legacy MIDX .rev file was
loaded, but in a subsequent commit will become parameterized over the
the reverse index's source.

This function replaces checking for the existence of the .rev file. We
could write a similar helper to ensure that the .rev file is cleaned up
after repacking, but it will make subsequent tests more difficult to
write, and provides marginal value since we already check that the MIDX
.bitmap file is removed.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5326-multi-pack-bitmaps.sh