aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-07-30 14:17:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-07-30 14:17:09 -0400
commitf413d14d7a3fd0c924e3a43550340ce46ce4b0d6 (patch)
treedb307fcecc8494c5cbb89d08d399e50fa509ce75
parentd7daf80c319652bb617d3b17f9cf34025c0d6b1b (diff)
update test suite for dropunused behavior change
-rw-r--r--Test.hs5
-rw-r--r--doc/bugs/Test_failure_on_debian_dropunused.mdwn3
2 files changed, 6 insertions, 2 deletions
diff --git a/Test.hs b/Test.hs
index c45b0d360..eb65d21a7 100644
--- a/Test.hs
+++ b/Test.hs
@@ -582,9 +582,10 @@ test_unused env = "git-annex unused/dropunused" ~: intmpclonerepoInDirect env $
@? "dropkey failed"
checkunused [sha1annexedfilekey] ("after dropkey --force " ++ Types.Key.key2file annexedfilekey)
- git_annex env "dropunused" ["1"] @? "dropunused failed"
+ not <$> git_annex env "dropunused" ["1"] @? "dropunused failed to fail without --force"
+ git_annex env "dropunused" ["--force", "1"] @? "dropunused failed"
checkunused [] "after dropunused"
- not <$> git_annex env "dropunused" ["10", "501"] @? "dropunused failed to fail on bogus numbers"
+ not <$> git_annex env "dropunused" ["--force", "10", "501"] @? "dropunused failed to fail on bogus numbers"
where
checkunused expectedkeys desc = do
diff --git a/doc/bugs/Test_failure_on_debian_dropunused.mdwn b/doc/bugs/Test_failure_on_debian_dropunused.mdwn
index 2d466ebcf..459c5f55b 100644
--- a/doc/bugs/Test_failure_on_debian_dropunused.mdwn
+++ b/doc/bugs/Test_failure_on_debian_dropunused.mdwn
@@ -26,3 +26,6 @@ I've tried a clean and rebuild and it reappears, so if there is more information
# End of transcript or log.
"""]]
+
+> Forgot to update the test suite for this behavior change.
+> [[done]] --[[Joey]]