mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-10 11:35:00 -05:00
Add pactest for "Optional for" output
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
d0e5cd2c7f
commit
7a24f909fc
13
test/pacman/tests/query012.py
Normal file
13
test/pacman/tests/query012.py
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
self.description = "Query info on a package (reverse optdeps)"
|
||||||
|
|
||||||
|
pkg = pmpkg("dummy", "1.0-2")
|
||||||
|
pkg.optdepends = ["dep: for foobar"]
|
||||||
|
self.addpkg2db("local", pkg)
|
||||||
|
|
||||||
|
dep = pmpkg("dep")
|
||||||
|
self.addpkg2db("local", dep)
|
||||||
|
|
||||||
|
self.args = "-Qi %s" % dep.name
|
||||||
|
|
||||||
|
self.addrule("PACMAN_RETCODE=0")
|
||||||
|
self.addrule("PACMAN_OUTPUT=^Optional For.*%s" % pkg.name)
|
Loading…
Reference in New Issue
Block a user