Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test/pacman/tests/fileconflict023.py
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-15 18:13:51 -0500
committerAllan McRae <allan@archlinux.org>2013-02-24 13:11:54 +1000
commit4a1d93b92c76bde58193083812dda94c0fa5d373 (patch)
treed2fced5db32e277d8df19e0b80adaf91adde277d /test/pacman/tests/fileconflict023.py
parent0bbc406ee8773ed646393cee175280c33fea8dff (diff)
add fileconflict tests for cases with symlinks
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test/pacman/tests/fileconflict023.py')
-rw-r--r--test/pacman/tests/fileconflict023.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/pacman/tests/fileconflict023.py b/test/pacman/tests/fileconflict023.py
new file mode 100644
index 00000000..1310b680
--- /dev/null
+++ b/test/pacman/tests/fileconflict023.py
@@ -0,0 +1,20 @@
+self.description = "File conflict between package with symlink and package with real path resolved by removal"
+
+self.filesystem = ["usr/", "usr/lib/", "lib -> usr/lib/"]
+
+lp1 = pmpkg("foo")
+lp1.files = ["lib/", "lib/file"]
+self.addpkg2db("local", lp1)
+
+sp1 = pmpkg("bar")
+sp1.conflicts = ["foo"]
+sp1.files = ["usr/", "usr/lib/", "usr/lib/file"]
+self.addpkg2db("sync", sp1)
+
+self.args = "-S %s --ask=4" % sp1.name
+
+self.addrule("PACMAN_RETCODE=0")
+self.addrule("!PKG_EXIST=foo")
+self.addrule("PKG_EXIST=bar")
+
+self.expectfailure = True