summaryrefslogtreecommitdiffstats
path: root/test/pacman/tests/ignore006.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pacman/tests/ignore006.py')
-rw-r--r--test/pacman/tests/ignore006.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pacman/tests/ignore006.py b/test/pacman/tests/ignore006.py
new file mode 100644
index 00000000..4c1c1cac
--- /dev/null
+++ b/test/pacman/tests/ignore006.py
@@ -0,0 +1,10 @@
+self.description = "Sync with target in ignore list and say no"
+
+pkg = pmpkg("package1")
+self.addpkg2db("sync", pkg)
+
+self.option["IgnorePkg"] = ["package1"]
+self.args = "--ask=1 -S %s" % pkg.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=package1")