summaryrefslogtreecommitdiff
path: root/test/pacman/tests/remove002.py
blob: 1deffb0d5d727fa0dc33cf2373ac43e6b3ec6f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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")