]> arthur.barton.de Git - bup.git/commit
git: add a test for not keeping midx files open
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 18 Jan 2020 21:36:36 +0000 (22:36 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Apr 2020 19:36:09 +0000 (14:36 -0500)
commitc3cc7537c573ee5d33df11c81a05457f07c961d0
tree798864dafee82bd29b3cd3f8f593f88569e1fd6a
parent23d656996cf2c65016f9f9a875bbe671c0fab9f2
git: add a test for not keeping midx files open

This test creates a few dummy idx files, generates an midx,
queries a PackIdxList for a non-existent object, unlinks the
midx and checks that we still have it open, but that we close
it at PackIdxList::refresh now.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
(cherry picked from commit 5ab20bb9d4bd403eb726fe6c5a7321a09ad2b21f)
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tgit.py