[Frugalware-darcs] pacman-g2: tests/remove032.py: new test

VMiklos vmiklos at frugalware.org
Mon Jun 25 13:02:04 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman-g2;a=darcs_commitdiff;h=20070624123507-e2957-9264b9ca910fec64f696c89b6b2059da3865aaee.gz;

[tests/remove032.py: new test
VMiklos <vmiklos at frugalware.org>**20070624123507] {
addfile ./pactest/tests/remove032.py
hunk ./pactest/tests/remove032.py 1
+self.description = "Remove a group from the local db"
+
+sp1 = pmpkg("pkg1")
+sp1.groups = ["grp"]
+
+sp2 = pmpkg("pkg2")
+sp2.groups = ["grp"]
+
+sp3 = pmpkg("pkg3")
+sp3.groups = ["grp"]
+
+for p in sp1, sp2, sp3:
+	self.addpkg2db("local", p);
+
+self.args = "-R grp"
+
+self.addrule("PACMAN_RETCODE=0")
+for p in sp1, sp2, sp3:
+	self.addrule("!PKG_EXIST=%s" % p.name)
}


More information about the Frugalware-darcs mailing list