fsck behavior varies in direct mode when the file is modified
This commit is contained in:
parent
a5dc269cd7
commit
ba0c165704
1 changed files with 4 additions and 1 deletions
5
Test.hs
5
Test.hs
|
@ -455,7 +455,10 @@ test_fsck env = "git-annex fsck" ~: TestList [basicfsck, barefsck, withlocaluntr
|
||||||
git_annex env "get" [f] @? "get of file failed"
|
git_annex env "get" [f] @? "get of file failed"
|
||||||
Utility.FileMode.allowWrite f
|
Utility.FileMode.allowWrite f
|
||||||
writeFile f (changedcontent f)
|
writeFile f (changedcontent f)
|
||||||
not <$> git_annex env "fsck" [] @? "fsck failed to fail with corrupted file content"
|
ifM (annexeval Config.isDirect)
|
||||||
|
( git_annex env "fsck" [] @? "fsck failed in direct mode with changed file content"
|
||||||
|
, not <$> git_annex env "fsck" [] @? "fsck failed to fail with corrupted file content"
|
||||||
|
)
|
||||||
git_annex env "fsck" [] @? "fsck unexpectedly failed again; previous one did not fix problem with " ++ f
|
git_annex env "fsck" [] @? "fsck unexpectedly failed again; previous one did not fix problem with " ++ f
|
||||||
fsck_should_fail m = do
|
fsck_should_fail m = do
|
||||||
not <$> git_annex env "fsck" [] @? "fsck failed to fail with " ++ m
|
not <$> git_annex env "fsck" [] @? "fsck failed to fail with " ++ m
|
||||||
|
|
Loading…
Add table
Reference in a new issue