diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-03 00:20:45 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-03 00:20:45 +0200 |
commit | 142c2132cf3312c1ad38d87e323277664985701c (patch) | |
tree | 09647bc11e97e2dc3f9cc0e16bc8344e23042394 /test/pacman/tests/replace102.py | |
parent | 0d1fcd329fac091568ad7ad3978771a534e7e09e (diff) | |
download | pacman-142c2132cf3312c1ad38d87e323277664985701c.tar.gz pacman-142c2132cf3312c1ad38d87e323277664985701c.tar.xz |
Add two currently failing test cases from bug reports
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/tests/replace102.py')
-rw-r--r-- | test/pacman/tests/replace102.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/pacman/tests/replace102.py b/test/pacman/tests/replace102.py new file mode 100644 index 00000000..c6e2e5f0 --- /dev/null +++ b/test/pacman/tests/replace102.py @@ -0,0 +1,27 @@ +self.description = "Replace a package with a file in 'backup' (local modified)" +# FS#24543 + +lp = pmpkg("dummy") +lp.files = ["etc/dummy.conf*", "bin/dummy"] +lp.backup = ["etc/dummy.conf"] +self.addpkg2db("local", lp) + +sp = pmpkg("replacement") +sp.replaces = ["dummy"] +sp.files = ["etc/dummy.conf", "bin/dummy*"] +sp.backup = ["etc/dummy.conf"] +self.addpkg2db("sync", sp) + +self.args = "-Su" + +self.addrule("!PKG_EXIST=dummy") +self.addrule("PKG_EXIST=replacement") + +self.addrule("FILE_EXIST=etc/dummy.conf") +self.addrule("!FILE_MODIFIED=etc/dummy.conf") +self.addrule("!FILE_PACNEW=etc/dummy.conf") +self.addrule("!FILE_PACSAVE=etc/dummy.conf") + +self.addrule("FILE_EXIST=bin/dummy") + +self.expectfailure = True |