aboutsummaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs5
1 files changed, 3 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