diff options
Diffstat (limited to 'test/pacman/tests/fileconflict022.py')
-rw-r--r-- | test/pacman/tests/fileconflict022.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pacman/tests/fileconflict022.py b/test/pacman/tests/fileconflict022.py new file mode 100644 index 00000000..6f9aec93 --- /dev/null +++ b/test/pacman/tests/fileconflict022.py @@ -0,0 +1,21 @@ +self.description = "File conflict between package with symlink and package with real path" + +self.filesystem = ["usr/lib/", "lib -> usr/lib/"] + +sp1 = pmpkg("foo") +# share/ causes the entries to be reordered after path resolution +sp1.files = ["lib/", "lib/file", "share/"] +self.addpkg2db("sync", sp1) + +sp2 = pmpkg("bar") +sp2.files = ["usr/", "usr/lib/", "usr/lib/file"] +self.addpkg2db("sync", sp2) + +self.args = "-S %s %s" % (sp1.name, sp2.name) + +self.addrule("PACMAN_RETCODE=1") +self.addrule("PACMAN_OUTPUT=.*/usr/lib/file exists in both 'foo' and 'bar'") +self.addrule("!PKG_EXIST=foo") +self.addrule("!PKG_EXIST=bar") + +self.expectfailure = True |