]> dgit.raspbian.org Git - git-annex.git/commitdiff
split git-remote-annex test
authorJoey Hess <joeyh@joeyh.name>
Tue, 19 Nov 2024 16:54:23 +0000 (12:54 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 19 Nov 2024 16:54:23 +0000 (12:54 -0400)
Test.hs
doc/bugs/tests_started_to_fail_recently/comment_2_a58e3ebcd37f866d7154f66da8c01929._comment [new file with mode: 0644]

diff --git a/Test.hs b/Test.hs
index 605bd85fc13e0d8fbf4bb0995ee607408cc97a5b..a850cae2587ff131199a675daf3411dc5e8ad858 100644 (file)
--- a/Test.hs
+++ b/Test.hs
@@ -282,7 +282,8 @@ repoTests note numparts = map mk $ sep
        [ testCase "add dup" test_add_dup
        , testCase "add extras" test_add_extras
        , testCase "add moved link" test_add_moved
-       , testCase "git-remote-annex" test_git_remote_annex
+       , testCase "git-remote-annex" (test_git_remote_annex False)
+       , testCase "git-remote-annex exporttree" (test_git_remote_annex True)
        , testCase "readonly remote" test_readonly_remote
        , testCase "ignore deleted files" test_ignore_deleted_files
        , testCase "metadata" test_metadata
@@ -422,12 +423,14 @@ test_add_extras = intmpclonerepo $ do
        annexed_present wormannexedfile
        checkbackend wormannexedfile backendWORM
 
-test_git_remote_annex :: Assertion
-test_git_remote_annex = do
-       testspecialremote [] $ 
-               git_annex "copy" ["--to=foo"] "copy"
-       testspecialremote ["importtree=yes", "exporttree=yes"] $
-               git_annex "export" ["master", "--to=foo"] "export"
+test_git_remote_annex :: Bool -> Assertion
+test_git_remote_annex exporttree
+       | exporttree = 
+               testspecialremote ["importtree=yes", "exporttree=yes"] $
+                       git_annex "export" ["master", "--to=foo"] "export"
+       | otherwise = 
+               testspecialremote [] $ 
+                       git_annex "copy" ["--to=foo"] "copy"
   where
        testspecialremote cfg populate = intmpclonerepo $ do
                let cfg' = ["type=directory", "encryption=none", "directory=dir"] ++ cfg
diff --git a/doc/bugs/tests_started_to_fail_recently/comment_2_a58e3ebcd37f866d7154f66da8c01929._comment b/doc/bugs/tests_started_to_fail_recently/comment_2_a58e3ebcd37f866d7154f66da8c01929._comment
new file mode 100644 (file)
index 0000000..ecc2322
--- /dev/null
@@ -0,0 +1,18 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2024-11-19T16:48:25Z"
+ content="""
+Re the OSX failure, it seems that somehow the manifest key is not being
+found when the test is run on OSX. I don't know why. There is nothing in
+this code that should be OSX-specific.
+
+Unfortunately I do have access to any OSX system to try to investigate
+this. The "datalads-mac" I used to use does not seem to exist anymore.
+
+Of course, this test could be skipped on OSX.
+
+Does occur to me this could somehow be exposing a deeper problem on OSX
+with exporttree special remotes. I have split the failing test in two, so
+we'll see if both fail, or only the exporttree one.
+"""]]