]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest: check if rm_work is enabled
authorAnuj Mittal <anuj.mittal@intel.com>
Sat, 28 Jul 2018 08:53:16 +0000 (16:53 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jul 2018 11:44:28 +0000 (12:44 +0100)
rm_work if enabled leads to some tests failing that rely on artifacts
being present. Check if rm_work.bbclass is included and show an error
and exit if it is.

Fixes [YOCTO #12694]

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/context.py

index 16812ba96ecd38c043d1e3d98e5b39bf5bd7c3ec..3a70f9e77b0b176a90502baeac357183f05cb724 100644 (file)
@@ -187,6 +187,10 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
             self.tc.logger.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.")
             raise OEQAPreRun
 
+        if "rm_work.bbclass" in self.tc.td["BBINCLUDED"]:
+            self.tc.logger.error("You have rm_work enabled which isn't recommended while running oe-selftest. Please disable it before continuing.")
+            raise OEQAPreRun
+
         if "PRSERV_HOST" in self.tc.td:
             self.tc.logger.error("Please unset PRSERV_HOST in order to run oe-selftest")
             raise OEQAPreRun