Move important information up in -Si output
[pacman-ng.git] / test / pacman / tests / scriptlet001.py
blob6f702eb8f244a538721a4b4f3be10df5e45bc6e9
1 self.description = "Scriptlet test (pre/post install)"
3 p1 = pmpkg("dummy")
4 p1.files = ['etc/dummy.conf']
5 p1.install['pre_install'] = "echo foobar > pre_install"
6 p1.install['post_install'] = "echo foobar > post_install"
7 self.addpkg(p1)
9 self.args = "-U %s" % p1.filename()
11 self.addrule("PACMAN_RETCODE=0")
12 self.addrule("FILE_EXIST=pre_install")
13 self.addrule("FILE_EXIST=post_install")
15 fakechroot = util.which("fakechroot")
16 if not fakechroot:
17 self.expectfailure = True