skip git-remote-annex tests on windows
The NullSoftInstaller does not install git-remote-annex. For that matter, it does not install git-annex-shell either. I don't know quite how it would make sense to do so, without hard links. It could contain 3 copies of the same binary.
This commit is contained in:
parent
73950a6a0c
commit
8c11c06a31
1 changed files with 5 additions and 0 deletions
5
Test.hs
5
Test.hs
|
@ -425,12 +425,17 @@ test_add_extras = intmpclonerepo $ do
|
||||||
|
|
||||||
test_git_remote_annex :: Bool -> Assertion
|
test_git_remote_annex :: Bool -> Assertion
|
||||||
test_git_remote_annex exporttree
|
test_git_remote_annex exporttree
|
||||||
|
#ifndef mingw32_HOST_OS
|
||||||
| exporttree =
|
| exporttree =
|
||||||
testspecialremote ["importtree=yes", "exporttree=yes"] $
|
testspecialremote ["importtree=yes", "exporttree=yes"] $
|
||||||
git_annex "export" ["master", "--to=foo"] "export"
|
git_annex "export" ["master", "--to=foo"] "export"
|
||||||
| otherwise =
|
| otherwise =
|
||||||
testspecialremote [] $
|
testspecialremote [] $
|
||||||
git_annex "copy" ["--to=foo"] "copy"
|
git_annex "copy" ["--to=foo"] "copy"
|
||||||
|
#else
|
||||||
|
-- git-remote-annex is not currently installed on Windows
|
||||||
|
return ()
|
||||||
|
#endif
|
||||||
where
|
where
|
||||||
testspecialremote cfg populate = intmpclonerepo $ do
|
testspecialremote cfg populate = intmpclonerepo $ do
|
||||||
let cfg' = ["type=directory", "encryption=none", "directory=dir"] ++ cfg
|
let cfg' = ["type=directory", "encryption=none", "directory=dir"] ++ cfg
|
||||||
|
|
Loading…
Reference in a new issue