diff options
author | Joey Hess <joey@kitenet.net> | 2011-09-28 15:17:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-09-28 15:17:45 -0400 |
commit | 5ae270001c978b306419e6799e67e5f14a1765a2 (patch) | |
tree | a32d1289fdc3f2a409b45df6983cdb179e8dc870 | |
parent | ad245a6375b32a17a9aa18088ee006cad6b4c1ff (diff) |
fix
-rw-r--r-- | test.hs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -44,6 +44,7 @@ import qualified Types.Key import qualified Config import qualified Crypto import qualified Utility.Path +import qualified Utility.FileMode -- for quickcheck instance Arbitrary Types.Key.Key where @@ -389,7 +390,7 @@ test_fsck = "git-annex fsck" ~: TestList [basicfsck, withlocaluntrusted, withrem corrupt f = do git_annex "get" ["-q", f] @? "get of file failed" - Content.allowWrite f + Utility.FileMode.allowWrite f writeFile f (changedcontent f) r <- git_annex "fsck" ["-q"] not r @? "fsck failed to fail with corrupted file content" @@ -558,7 +559,7 @@ cleanup dir = do -- removed via directory permissions; undo recurseDir SystemFS dir >>= filterM doesDirectoryExist >>= - mapM_ Content.allowWrite + mapM_ Utility.FileMode.allowWrite removeDirectoryRecursive dir checklink :: FilePath -> Assertion |