]> arthur.barton.de Git - bup.git/commit
test-save-errors: add tests for inaccessible metadata
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 25 Jan 2020 21:21:24 +0000 (22:21 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Apr 2020 19:24:17 +0000 (14:24 -0500)
commit9d396b357aea8be5ea1ed5cdc191b277ce25ebec
tree04c4380acb6866a98732325bc9e22f623f88391c
parent878bd638c6cedda652ac79c6c8b3a0f14d67966c
test-save-errors: add tests for inaccessible metadata

Add test cases for when metadata for a file and directory cannot
be read (causing an IOError instead).

Note that this test fails if the previous two patches aren't
applied.

Note also that if such an error ever happened without the patch
to save, the repository is essentially corrupt and there no way
to figure out _which_ file didn't get metadata.

Note that this uses some python trickery to force an IOError in
metadata reading.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
[rlb@defaultvalue.org: name test in commit summary line]
Tested-by: Rob Browning <rlb@defaultvalue.org>
(cherry picked from commit 19b3b1b7acda5e507a4ec053cff6a2e139c24f31)
[rlb@defaultvalue.org: adjust bup-save test overrides for 0.3x]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
Makefile
t/test-save-errors [new file with mode: 0755]