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/replace101.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/replace101.py')
-rw-r--r-- | test/pacman/tests/replace101.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/pacman/tests/replace101.py b/test/pacman/tests/replace101.py new file mode 100644 index 00000000..86c40ac6 --- /dev/null +++ b/test/pacman/tests/replace101.py @@ -0,0 +1,25 @@ +self.description = "Sysupgrade with a versioned replacement" + +sp1 = pmpkg("python2-yaml", "5-1") +sp1.replaces = ["python-yaml<5"] +sp1.conflicts = ["python-yaml<5"] +sp1.files = ["lib/python2/file"] +self.addpkg2db("sync", sp1) + +# the python3 version +sp2 = pmpkg("python-yaml", "5-1") +sp2.files = ["lib/python3/file"] +self.addpkg2db("sync", sp2) + +lp1 = pmpkg("python-yaml", "4-1") +lp1.files = ["lib/python2/file"] +self.addpkg2db("local", lp1) + +self.args = "-Su" + +self.addrule("PACMAN_RETCODE=0") +self.addrule("!PKG_EXIST=python-yaml") +self.addrule("PKG_VERSION=python2-yaml|5-1") +self.addrule("FILE_EXIST=lib/python2/file") + +self.expectfailure = True |