Commands * search should exit with failure on no results. #213

This commit is contained in:
Andrey Smirnov
2015-03-11 00:31:53 +03:00
parent 03e2a8d558
commit 4cb0526980
3 changed files with 15 additions and 0 deletions
@@ -0,0 +1 @@
ERROR: no results
+10
View File
@@ -37,3 +37,13 @@ class SearchSnapshot4Test(BaseTest):
fixtureCmds = ["aptly snapshot create wheezy-main from mirror wheezy-main"]
outputMatchPrepare = lambda _, s: "\n".join(sorted(s.split("\n")))
runCmd = "aptly snapshot search -with-deps wheezy-main 'Name (nginx)'"
class SearchSnapshot5Test(BaseTest):
"""
search snapshot: no results
"""
fixtureDB = True
fixtureCmds = ["aptly snapshot create wheezy-main from mirror wheezy-main"]
runCmd = "aptly snapshot search -with-deps wheezy-main 'Name (no-such-package)'"
expectedCode = 1