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:
Joey Hess 2024-11-19 13:01:12 -04:00
parent 73950a6a0c
commit 8c11c06a31
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -425,12 +425,17 @@ test_add_extras = intmpclonerepo $ do
test_git_remote_annex :: Bool -> Assertion
test_git_remote_annex exporttree
#ifndef mingw32_HOST_OS
| exporttree =
testspecialremote ["importtree=yes", "exporttree=yes"] $
git_annex "export" ["master", "--to=foo"] "export"
| otherwise =
testspecialremote [] $
git_annex "copy" ["--to=foo"] "copy"
#else
-- git-remote-annex is not currently installed on Windows
return ()
#endif
where
testspecialremote cfg populate = intmpclonerepo $ do
let cfg' = ["type=directory", "encryption=none", "directory=dir"] ++ cfg