summaryrefslogtreecommitdiff
path: root/test/pacman/tests/provision002.py
blob: 49b88a18763d2d99d615e21c54194a0f9ca81dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
self.description = "-S provision, multiple providers, one installed"

sp = pmpkg("pkg1", "1.0-2")
sp.provides = ["pkg-env"]
self.addpkg2db("sync", sp)

sp = pmpkg("pkg2", "1.0-2")
sp.provides = ["pkg-env"]
self.addpkg2db("sync", sp)

lp = pmpkg("pkg2")
lp.provides = ["pkg-env"]
self.addpkg2db("local", lp)

self.args = "-S pkg-env"

self.addrule("PACMAN_RETCODE=0")
self.addrule("!PKG_EXIST=pkg1")
self.addrule("PKG_EXIST=pkg2")
self.addrule("PKG_VERSION=pkg2|1.0-2")

self.expectfailure = True