diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-15 15:42:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-15 15:42:31 -0400 |
commit | b2d4b7eb8fe90997b257d841c24ed91e9d93d601 (patch) | |
tree | 95358d84203cf64dc8b927fa3c1e5648f71eaa17 | |
parent | 092bf96a9564fd5e7cc896e512900d1a5a3e35be (diff) |
add test case for b0f85b3e22cbb608d14f606f57badba79eece945
-rw-r--r-- | Test.hs | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -803,8 +803,16 @@ test_mixed_conflict_resolution env = do let r = if inr1 then r1 else r2 indir env r $ do git_annex env "sync" [] @? "sync failed in mixed conflict" + checkmerge r1 + checkmerge r2 where conflictor = "conflictor" + variantprefix = conflictor ++ ".variant" + checkmerge d = do + doesDirectoryExist (d </> conflictor) @? (d ++ " conflictor directory missing") + (any (variantprefix `isPrefixOf`) + <$> getDirectoryContents d) + @? (d ++ "conflictor file missing") {- Set up repos as remotes of each other; - remove origin since we're going to sync |