summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJakob Gruber <jakob.gruber@gmail.com>2010-09-24 14:22:35 +0200
committerDan McGee <dan@archlinux.org>2010-12-30 09:35:03 -0600
commit58ee249c86d0f4ac1dfef9ca242d44d89044cb88 (patch)
tree1da9142eb794c73a190387209fad89af11c8d945 /test
parente0d327462c460329b8d0f65f1324551accff939c (diff)
downloadpacman-58ee249c86d0f4ac1dfef9ca242d44d89044cb88.tar.xz
Tests: Sync group which includes ignored pkgs
* FS#19854 (--ignore is ignored with groups) * http://www.archlinux.org/pipermail/pacman-dev/2009-June/008847.html (operation aborts when a package from a group is ignored/and user chooses not to install it) If a group member is ignored, we expect a) a question whether to install b) after saying 'no' to a), the ignored member not to be installed c) all other group members to be installed d) pacman to execute successfully Signed-off-by: Dan McGee <dan@archlinux.org> (cherry picked from commit 9d0b33fd3327ae6d2b15f50870c0885a2068d492)
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/ignore007.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/pacman/tests/ignore007.py b/test/pacman/tests/ignore007.py
new file mode 100644
index 00000000..e4be40a1
--- /dev/null
+++ b/test/pacman/tests/ignore007.py
@@ -0,0 +1,23 @@
+self.description = "Sync group with ignored packages"
+
+pkg1 = pmpkg("package1")
+pkg1.groups = ["grp"]
+self.addpkg2db("sync", pkg1)
+
+pkg2 = pmpkg("package2")
+pkg2.groups = ["grp"]
+self.addpkg2db("sync", pkg2)
+
+pkg3 = pmpkg("package3")
+pkg3.groups = ["grp"]
+self.addpkg2db("sync", pkg3)
+
+self.option["IgnorePkg"] = ["package1"]
+self.args = "--ask=1 -S grp"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=%s" % pkg1.name)
+self.addrule("PKG_EXIST=%s" % pkg2.name)
+self.addrule("PACMAN_OUTPUT=IgnorePkg")
+
+self.expectfailure = True