update for initremote changes
This commit is contained in:
parent
0f06eb5ecf
commit
2acd981b6e
1 changed files with 5 additions and 3 deletions
8
Test.hs
8
Test.hs
|
@ -730,15 +730,17 @@ test_crypto = "git-annex crypto" ~: intmpclonerepo $ when Build.SysConfig.gpg $
|
||||||
Utility.Gpg.testTestHarness @? "test harness self-test failed"
|
Utility.Gpg.testTestHarness @? "test harness self-test failed"
|
||||||
Utility.Gpg.testHarness $ do
|
Utility.Gpg.testHarness $ do
|
||||||
createDirectory "dir"
|
createDirectory "dir"
|
||||||
let initremote = git_annex "initremote"
|
let a cmd = git_annex cmd
|
||||||
[ "foo"
|
[ "foo"
|
||||||
, "type=directory"
|
, "type=directory"
|
||||||
, "encryption=" ++ Utility.Gpg.testKeyId
|
, "encryption=" ++ Utility.Gpg.testKeyId
|
||||||
, "directory=dir"
|
, "directory=dir"
|
||||||
, "highRandomQuality=false"
|
, "highRandomQuality=false"
|
||||||
]
|
]
|
||||||
initremote @? "initremote failed"
|
a "initremote" @? "initremote failed"
|
||||||
initremote @? "initremote failed when run twice in a row"
|
not <$> a "initremote" @? "initremote failed to fail when run twice in a row"
|
||||||
|
a "enableremote" @? "enableremote failed"
|
||||||
|
a "enableremote" @? "enableremote failed when run twice in a row"
|
||||||
git_annex "get" [annexedfile] @? "get of file failed"
|
git_annex "get" [annexedfile] @? "get of file failed"
|
||||||
annexed_present annexedfile
|
annexed_present annexedfile
|
||||||
git_annex "copy" [annexedfile, "--to", "foo"] @? "copy --to encrypted remote failed"
|
git_annex "copy" [annexedfile, "--to", "foo"] @? "copy --to encrypted remote failed"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue