summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakob Gruber <jakob.gruber@gmail.com>2010-10-09 09:20:57 +0200
committerDan McGee <dan@archlinux.org>2010-10-11 10:06:57 -0500
commit46ffd342a4255916a9599692b5969ae4cd85a156 (patch)
tree62f9e244cdb449cd3705e803687920f03b915c17 /test
parentfa933df65b9e024ec3291fcc1f995be3dc000e0c (diff)
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>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/pacman005.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pacman/tests/pacman005.py b/test/pacman/tests/pacman005.py
new file mode 100644
index 00000000..99c25b26
--- /dev/null
+++ b/test/pacman/tests/pacman005.py
@@ -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
+