]> 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>
Sun, 23 Feb 2020 20:25:18 +0000 (14:25 -0600)
commit19b3b1b7acda5e507a4ec053cff6a2e139c24f31
treedb6496accdce1132a311ba310fac7e00dce5e60d
parentda552ea8d19d5da73c0d387d4963bc77841ab9ba
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>
Makefile
t/test-save-errors [new file with mode: 0755]