update test suite for lock/unlock with missing file content change in v6
This commit is contained in:
parent
59f59de72e
commit
0ea1969275
1 changed files with 5 additions and 4 deletions
9
Test.hs
9
Test.hs
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue