summaryrefslogtreecommitdiff
path: root/test/pacman/tests/sync-nodepversion06.py
blob: 139b87af206cd8ea094a46c1a1d75e52ad9ec112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
self.description = "nodepversion: -Su fails"

p1 = pmpkg("pkg1", "1.0-1")
p1.depends = ["provision=1.0"]
self.addpkg2db("local", p1)

p2 = pmpkg("pkg2", "1.0-1")
p2.provides = ["provision=1.0"]
self.addpkg2db("local", p2)

sp2 = pmpkg("pkg2", "1.1-1")
sp2.provides = ["provision=1.1"]
self.addpkg2db("sync", sp2)

self.args = "-Su"

self.addrule("PACMAN_RETCODE=1")
self.addrule("PKG_VERSION=pkg1|1.0-1")
self.addrule("PKG_VERSION=pkg2|1.0-1")