From: Jakob Gruber <jakob.gru...@gmail.com>

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

Also see FS#20950
---
 test/pacman/tests/pacman005.py |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 test/pacman/tests/pacman005.py

diff --git a/test/pacman/tests/pacman005.py b/test/pacman/tests/pacman005.py
new file mode 100644
index 0000000..99c25b2
--- /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
+
-- 
1.7.3.1


Reply via email to