diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2018-07-28 16:53:16 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-30 12:44:35 +0100 |
commit | 9f7923c7e0a8044239c5fd5b818aacbd4696b68a (patch) | |
tree | 254738b33b52987a842e136aad614ca51afa784c | |
parent | 418b9261b3688dc03d73058c696dd4405a0b34f5 (diff) | |
download | poky-9f7923c7e0a8044239c5fd5b818aacbd4696b68a.tar.gz |
oeqa/selftest: check if rm_work is enabled
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]
(From OE-Core rev: dde7e2f590834aa8034f1371954f9b4fbc7a60b7)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/selftest/context.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py index 16812ba96e..3a70f9e77b 100644 --- a/meta/lib/oeqa/selftest/context.py +++ b/meta/lib/oeqa/selftest/context.py | |||
@@ -187,6 +187,10 @@ class OESelftestTestContextExecutor(OETestContextExecutor): | |||
187 | self.tc.logger.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.") | 187 | self.tc.logger.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.") |
188 | raise OEQAPreRun | 188 | raise OEQAPreRun |
189 | 189 | ||
190 | if "rm_work.bbclass" in self.tc.td["BBINCLUDED"]: | ||
191 | self.tc.logger.error("You have rm_work enabled which isn't recommended while running oe-selftest. Please disable it before continuing.") | ||
192 | raise OEQAPreRun | ||
193 | |||
190 | if "PRSERV_HOST" in self.tc.td: | 194 | if "PRSERV_HOST" in self.tc.td: |
191 | self.tc.logger.error("Please unset PRSERV_HOST in order to run oe-selftest") | 195 | self.tc.logger.error("Please unset PRSERV_HOST in order to run oe-selftest") |
192 | raise OEQAPreRun | 196 | raise OEQAPreRun |