Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / scriptlet002.py
blob907f419982f1801d61db321526fae443006dfbfa
1 self.description = "Scriptlet test (pre/post remove)"
3 p1 = pmpkg("dummy")
4 p1.files = ['etc/dummy.conf']
5 p1.install['pre_remove'] = "echo foobar > pre_remove"
6 p1.install['post_remove'] = "echo foobar > post_remove"
7 self.addpkg2db("local", p1)
9 self.args = "-R %s" % p1.name
11 self.addrule("PACMAN_RETCODE=0")
12 self.addrule("FILE_EXIST=pre_remove")
13 self.addrule("FILE_EXIST=post_remove")
15 fakechroot = util.which("fakechroot")
16 if not fakechroot:
17 self.expectfailure = True