]> 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>
Sun, 15 May 2016 16:23:16 +0000 (11:23 -0500)
commit6e20775670f5afc3356e929f2bd9c5d0b00e3aba
tree11d4e4a5957dc8d6ae11eb3e27521a86b6fb7128
parent0cfb6af7222ffba59e9a74c5105e0b5a9d89c678
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