From 46ffd342a4255916a9599692b5969ae4cd85a156 Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Sat, 9 Oct 2010 09:20:57 +0200 Subject: 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 --- test/pacman/tests/pacman005.py | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 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 + -- cgit v1.2.3-70-g09d2