Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-12 21:31:54 -0400
committerDan McGee <dan@archlinux.org>2011-08-15 06:30:25 -0500
commit8d5018e78003689ca1048f0d18a58605b93e3171 (patch)
treea297e1076f02667f79af0f15762a0f733f6edbb2
parentce8f91a71b2e5d50fe60baadc0269e6823e8056f (diff)
add pactest for replacing a shared provider
This is currently expected to fail. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--test/pacman/tests/replace103.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pacman/tests/replace103.py b/test/pacman/tests/replace103.py
new file mode 100644
index 00000000..955e22d0
--- /dev/null
+++ b/test/pacman/tests/replace103.py
@@ -0,0 +1,21 @@
+self.description = "Sysupgrade with a replace on a provider"
+
+sp1 = pmpkg("util-linux", "2.19.1-2")
+sp1.provides = ["util-linux-ng=2.19.1"]
+sp1.conflicts = ["util-linux-ng"]
+sp1.replaces = ["util-linux-ng"]
+self.addpkg2db("sync", sp1)
+
+sp2 = pmpkg("util-linux-git", "20110811-1")
+sp2.replaces = ["util-linux-ng"]
+sp2.conflicts = ["util-linux-ng", "util-linux"]
+sp2.provides = ["util-linux", "util-linux-ng"]
+self.addpkg2db("local", sp2)
+
+self.args = "-Su"
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("PKG_EXIST=util-linux-git")
+self.addrule("!PKG_EXIST=util-linux")
+
+self.expectfailure = True