summaryrefslogtreecommitdiff
path: root/test/pacman/tests/overwrite-files-match-negated.py
blob: 42b1be2d3c4471a7cca6c9fb32ef9512a827e432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
self.description = "Install a package with an existing file matching a negated --overwrite pattern"

p = pmpkg("dummy")
p.files = ["foobar"]
self.addpkg(p)

self.filesystem = ["foobar*"]

self.args = "-U --overwrite=foobar --overwrite=!foo* %s" % p.filename()

self.addrule("!PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=dummy")
self.addrule("!FILE_MODIFIED=foobar")