update test suite for lock/unlock with missing file content change in v6

This commit is contained in:
Joey Hess 2016-06-09 16:16:39 -04:00
parent 59f59de72e
commit 0ea1969275
Failed to extract signature

View file

@ -564,10 +564,11 @@ test_preferred_content = intmpclonerepo $ do
test_lock :: Assertion
test_lock = intmpclonerepoInDirect $ do
annexed_notpresent annexedfile
ifM (unlockedFiles <$> getTestMode)
( not <$> git_annex "lock" [annexedfile] @? "lock failed to fail with not present file"
, not <$> git_annex "unlock" [annexedfile] @? "unlock failed to fail with not present file"
)
unlessM (annexeval Annex.Version.versionSupportsUnlockedPointers) $
ifM (unlockedFiles <$> getTestMode)
( not <$> git_annex "lock" [annexedfile] @? "lock failed to fail with not present file"
, not <$> git_annex "unlock" [annexedfile] @? "unlock failed to fail with not present file"
)
annexed_notpresent annexedfile
-- regression test: unlock of newly added, not committed file