summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-30 22:38:56 -0400
committerDave Reisner <dreisner@archlinux.org>2011-11-13 14:19:16 -0500
commit10241a6d766fcebb3dbc930facb3c1b2c6ab4992 (patch)
tree89d2ac8b1e3092749d1d9a3044c73f9ade2448e1 /test
parent902305f1633298ff0ef7cd2bfbed0e91aae91646 (diff)
downloadpacman-10241a6d766fcebb3dbc930facb3c1b2c6ab4992.tar.xz
add fnmatch support for HoldPkg
Adds test remove031. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/tests/remove031.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pacman/tests/remove031.py b/test/pacman/tests/remove031.py
new file mode 100644
index 00000000..0ea09c87
--- /dev/null
+++ b/test/pacman/tests/remove031.py
@@ -0,0 +1,11 @@
+self.description = "Remove a package in HoldPkg"
+
+p1 = pmpkg("foopkg")
+self.addpkg2db("local", p1)
+
+self.option["HoldPkg"] = ["???pkg"]
+
+self.args = "-R %s" % p1.name
+
+self.addrule("PACMAN_RETCODE=1")
+self.addrule("PKG_EXIST=foopkg")