1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-16 14:25:21 -05:00

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

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