regression test for fd55563b02
This commit is contained in:
parent
fd55563b02
commit
e26e26fb32
1 changed files with 6 additions and 0 deletions
6
Test.hs
6
Test.hs
|
@ -450,6 +450,12 @@ test_lock = intmpclonerepoInDirect $ do
|
||||||
not <$> git_annex "unlock" [annexedfile] @? "unlock failed to fail with not present file"
|
not <$> git_annex "unlock" [annexedfile] @? "unlock failed to fail with not present file"
|
||||||
annexed_notpresent annexedfile
|
annexed_notpresent annexedfile
|
||||||
|
|
||||||
|
-- regression test: unlock of newly added, not committed file
|
||||||
|
-- should fail
|
||||||
|
writeFile "newfile" "foo"
|
||||||
|
git_annex "add" ["newfile"] @? "add new file failed"
|
||||||
|
not <$> git_annex "unlock" ["newfile"] @? "unlock failed to fail on newly added, never committed file"
|
||||||
|
|
||||||
git_annex "get" [annexedfile] @? "get of file failed"
|
git_annex "get" [annexedfile] @? "get of file failed"
|
||||||
annexed_present annexedfile
|
annexed_present annexedfile
|
||||||
git_annex "unlock" [annexedfile] @? "unlock failed"
|
git_annex "unlock" [annexedfile] @? "unlock failed"
|
||||||
|
|
Loading…
Reference in a new issue