1 self
.description
= "Scriptlet test (pre/post remove)"
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")
17 self
.expectfailure
= True