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
1 changed files with 11 additions and 0 deletions
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…
Add table
Reference in a new issue