[pacman-dev] [PATCH 1/4] CLI args: add pactest with an invalid combination
Xavier Chantry
chantry.xavier at gmail.com
Sun Oct 10 15:06:17 EDT 2010
From: Jakob Gruber <jakob.gruber at 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
More information about the pacman-dev
mailing list