1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/test/pacman/tests/remove002.py
Dan McGee b04a56dbe9 Add two pactests with non-trivial file counts
These are probably useful anyway, but also exposed the double file list bug
that will be fixed in a later commit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-11 18:44:26 -06:00

13 lines
346 B
Python

self.description = "Remove a package with several files"
p = pmpkg("foo")
p.files = ["usr/share/file_%d" % n for n in range(1000)]
self.addpkg2db("local", p)
self.args = "-R %s" % p.name
self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=foo")
self.addrule("!FILE_EXIST=usr/share/file_0")
self.addrule("!FILE_EXIST=usr/share/file_999")