mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-14 13:25:09 -05:00
3a4030837e
Giovanni Scafora <linuxmania@gmail.com> * Added pactest test for -Se operation James Rosten <seinfeld90@gmail.com>
19 lines
409 B
Python
19 lines
409 B
Python
self.description = "Test -Se (ensure specified package is not installed)"
|
|
|
|
sp1 = pmpkg("dummy")
|
|
sp1.depends = [ "dep1", "dep2" ]
|
|
self.addpkg2db("sync", sp1)
|
|
|
|
sp2 = pmpkg("dep1")
|
|
self.addpkg2db("sync", sp2)
|
|
|
|
sp3 = pmpkg("dep2")
|
|
self.addpkg2db("sync", sp3)
|
|
|
|
self.args = "-Se dummy"
|
|
|
|
self.addrule("PACMAN_RETCODE=0")
|
|
self.addrule("PKG_EXIST=dep1")
|
|
self.addrule("PKG_EXIST=dep2")
|
|
self.addrule("!PKG_EXIST=dummy")
|