avoid a FAT fail

This commit is contained in:
Joey Hess 2018-12-19 13:36:14 -04:00
parent 5759e93444
commit f9ec330cbf
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -1454,18 +1454,21 @@ test_adjusted_branch_merge_regression = do
checkmerge "r2" r2
where
conflictor = "conflictor"
setup r = indir r $ do
setup r = indir r $ whensupported $ do
disconnectOrigin
git_annex "upgrade" [] @? "upgrade failed"
git_annex "adjust" ["--unlock", "--force"] @? "adjust failed"
writecontent conflictor "conflictor"
git_annex "add" [conflictor] @? "add conflicter failed"
git_annex "sync" [] @? "sync failed"
checkmerge what d = indir d $ do
checkmerge what d = indir d $ whensupported $ do
git_annex "sync" [] @? ("sync failed in " ++ what)
l <- getDirectoryContents "."
conflictor `elem` l
@? ("conflictor not present after merge in " ++ what)
-- Currently this fails on FAT, for unknown reasons not to
-- do with what it's intended to test.
whensupported = unlessM (annexeval Config.crippledFileSystem)
{- Regression test for a bug in adjusted branch syncing code, where adding
- a subtree to an existing tree lost files. -}