]> arthur.barton.de Git - bup.git/commit
test_server_split_with_indexes: close packwriter
authorRob Browning <rlb@defaultvalue.org>
Sat, 26 Mar 2016 23:40:57 +0000 (18:40 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 26 Mar 2016 23:41:00 +0000 (18:41 -0500)
commit2f15f993cf5fd40dd31f04006a6abd2367e5628d
tree5d5d0b8f14c7ad1154237713d9ab171c9f6ea0ad
parent097b2289f4c3202a704987ecfe406713601aece5
test_server_split_with_indexes: close packwriter

Otherwise there are random test failures when the tmpdir is removed
before the PackWriter's destructor calls close().  This doesn't cause an
immediate problem, but it adds an unexpected entry to saved_errors that
causes later tests to fail.

The related saved_errors entries looked like this:

  ['../../../bup', 'midx', '--auto', '--dir', ...]: returned 15

and the underlying (hidden) midx stderr output in that case looked like
this:

  error: '...' is not a bup repository; run "bup init"

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tclient.py