print "Forcing test."
tmpsettings["EBUILD_FORCE_TEST"] = "1"
tmpsettings.backupenv["EBUILD_FORCE_TEST"] = "1"
+ tmpsettings.features.append("test")
+ tmpsettings["FEATURES"] = " ".join(tmpsettings.features)
+ tmpsettings.backup_changes("FEATURES")
if arg == "digest" and force:
discard_digests(ebuild, tmpsettings, portage.portdb)
a = portage.doebuild(ebuild, arg, portage.root, tmpsettings,
# FEATURES=test should imply USE=test
if "test" in self.configlist[-1].get("FEATURES","").split():
myflags.add("test")
+ if self.get("EBUILD_FORCE_TEST") == "1":
+ self.usemask.discard("test")
usesplit = [ x for x in myflags if \
x not in self.usemask]