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