update test suite for dropunused behavior change

This commit is contained in:
Joey Hess 2013-07-30 14:17:09 -04:00
parent 9dc75ea559
commit 6ac595f8b5
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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]]