From 0083ccc67794d1a7dabca850422e09d8ef6c0265 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 20 Nov 2024 15:19:23 -0400 Subject: [PATCH] fix windows build --- Test.hs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Test.hs b/Test.hs index 7c08d3e948..77a4029bbc 100644 --- a/Test.hs +++ b/Test.hs @@ -425,18 +425,14 @@ test_add_extras = intmpclonerepo $ do checkbackend wormannexedfile backendWORM test_git_remote_annex :: Bool -> Assertion -test_git_remote_annex exporttree #ifndef mingw32_HOST_OS +test_git_remote_annex exporttree | exporttree = runtest ["importtree=yes", "exporttree=yes"] $ git_annex "export" ["master", "--to=foo"] "export" | otherwise = runtest [] $ git_annex "copy" ["--to=foo"] "copy" -#else - -- git-remote-annex is not currently installed on Windows - return () -#endif where runtest cfg populate = whenM Git.Bundle.versionSupported $ intmpclonerepo $ do @@ -455,6 +451,11 @@ test_git_remote_annex exporttree inpath "clonedir" $ git_annex "get" [annexedfile] "get from origin special remote" diruuid="89ddefa4-a04c-11ef-87b5-e880882a4f98" +#else +test_git_remote_annex exporttree = + -- git-remote-annex is not currently installed on Windows + return () +#endif test_add_moved :: Assertion test_add_moved = intmpclonerepo $ do