diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-02-16 00:13:51 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-02-24 04:11:54 +0100 |
commit | 4a1d93b92c76bde58193083812dda94c0fa5d373 (patch) | |
tree | d2fced5db32e277d8df19e0b80adaf91adde277d /test/pacman/tests/fileconflict024.py | |
parent | 0bbc406ee8773ed646393cee175280c33fea8dff (diff) | |
download | pacman-4a1d93b92c76bde58193083812dda94c0fa5d373.tar.gz pacman-4a1d93b92c76bde58193083812dda94c0fa5d373.tar.xz |
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/fileconflict024.py')
-rw-r--r-- | test/pacman/tests/fileconflict024.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/pacman/tests/fileconflict024.py b/test/pacman/tests/fileconflict024.py new file mode 100644 index 00000000..1dcb5ade --- /dev/null +++ b/test/pacman/tests/fileconflict024.py @@ -0,0 +1,19 @@ +self.description = "Filesystem conflict on upgrade with symlinks" + +self.filesystem = ["share", "usr/lib/", "lib -> usr/lib/"] + +lp1 = pmpkg("foo", "1-1") +lp1.files = ["lib/"] +self.addpkg2db("local", lp1) + +sp1 = pmpkg("foo", "1-2") +# share/ causes the file order to change upon path resolution +sp1.files = ["lib/", "share"] +self.addpkg2db("sync", sp1) + +self.args = "-S %s" % sp1.name + +self.addrule("PACMAN_RETCODE=1") +self.addrule("PKG_EXIST=foo|1-1") + +self.expectfailure = True |