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:
parent
fa933df65b
commit
46ffd342a4
11
test/pacman/tests/pacman005.py
Normal file
11
test/pacman/tests/pacman005.py
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user