summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-15 13:33:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-15 13:33:09 -0400
commit6a370c6200758afdc043cfc816da6b2c3987d868 (patch)
tree3cdf1eada845a3cc5237f7953d947986fef6f8a6 /Test.hs
parent43cc4f70de576ce155f977fbb993f971e1c4c934 (diff)
Fix test suite to cover lock --force change.
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Test.hs b/Test.hs
index 4c7281fce..e40d935a9 100644
--- a/Test.hs
+++ b/Test.hs
@@ -423,7 +423,8 @@ test_lock env = intmpclonerepoInDirect env $ do
-- throws it away
changecontent annexedfile
writeFile annexedfile $ content annexedfile ++ "foo"
- git_annex env "lock" [annexedfile] @? "lock failed"
+ not <$> git_annex env "lock" [annexedfile] @? "lock failed to fail without --force"
+ git_annex env "lock" ["---force", annexedfile] @? "lock --force failed"
annexed_present annexedfile
git_annex env "unlock" [annexedfile] @? "unlock failed"
unannexed annexedfile