1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-16 06:15:08 -05:00
pacman/pactest/tests/mode001.py

13 lines
270 B
Python
Raw Normal View History

self.description = "Check the mode of default files in a package"
p = pmpkg("pkg1")
p.files = ["bin/foo",
"bin/bar"]
self.addpkg(p)
self.args = "-U %s" % p.filename()
self.addrule("PACMAN_RETCODE=0")
for f in p.files:
self.addrule("FILE_MODE=%s|644" % f)