summaryrefslogtreecommitdiff
path: root/test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-12-20 16:06:15 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-12-20 16:06:15 -0400
commit7dff46eeec44e34075f9506ce076e6ec0298c178 (patch)
tree98f6b0a27fdb5da3742cb88226e19ddf4c65430a /test.hs
parent9f65410fd823c5e98037bcb4be282892feedf53c (diff)
cleanup backend used when reversing migration
WORM is no longer the starting backend, so let's really reverse, getting back to SHA256.
Diffstat (limited to 'test.hs')
-rw-r--r--test.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/test.hs b/test.hs
index 5c43c3d4d..d3d7609d8 100644
--- a/test.hs
+++ b/test.hs
@@ -430,15 +430,15 @@ test_migrate = "git-annex migrate" ~: TestList [t False, t True]
checkbackend sha1annexedfile backendSHA1
-- check that reversing a migration works
- writeFile ".gitattributes" $ "* annex.backend=WORM"
+ writeFile ".gitattributes" $ "* annex.backend=SHA256"
git_annex "migrate" [sha1annexedfile]
@? "migrate sha1annexedfile failed"
git_annex "migrate" [annexedfile]
@? "migrate annexedfile failed"
annexed_present annexedfile
annexed_present sha1annexedfile
- checkbackend annexedfile backendWORM
- checkbackend sha1annexedfile backendWORM
+ checkbackend annexedfile backendSHA256
+ checkbackend sha1annexedfile backendSHA256
where
checkbackend file expected = do
@@ -761,8 +761,8 @@ changedcontent f = (content f) ++ " (modified)"
backendSHA1 :: Types.Backend Types.Annex
backendSHA1 = backend_ "SHA1"
-backendWORM :: Types.Backend Types.Annex
-backendWORM = backend_ "WORM"
+backendSHA256 :: Types.Backend Types.Annex
+backendSHA256 = backend_ "SHA256"
backend_ :: String -> Types.Backend Types.Annex
backend_ name = Backend.lookupBackendName name