CLI args: add pactest with an invalid combination

Pacman should catch cases in which the passed arguments don't apply to the
current operation (sync/query/...).

Also see FS#20950.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Jakob Gruber 2010-10-09 09:20:57 +02:00 committed by Dan McGee
parent fa933df65b
commit 46ffd342a4
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
self.description = "Test invalid combination of command line options (-Qy)"
p = pmpkg("foobar")
self.addpkg2db("local", p)
self.args = "-Qy"
self.addrule("PACMAN_RETCODE=1")
self.expectfailure = True