summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/oe-selftest12
1 files changed, 10 insertions, 2 deletions
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 0baf572c10..58d3b1ef8a 100755
--- a/scripts/oe-selftest
+++ b/scripts/oe-selftest
@@ -131,8 +131,16 @@ def preflight_check():
131 os.chdir(builddir) 131 os.chdir(builddir)
132 132
133 if not "meta-selftest" in get_bb_var("BBLAYERS"): 133 if not "meta-selftest" in get_bb_var("BBLAYERS"):
134 log.error("You don't seem to have the meta-selftest layer in BBLAYERS") 134 log.warn("meta-selftest layer not found in BBLAYERS, adding it")
135 return False 135 meta_selftestdir = os.path.join(
136 get_bb_var("BBLAYERS_FETCH_DIR"),
137 'meta-selftest')
138 if os.path.isdir(meta_selftestdir):
139 runCmd("bitbake-layers add-layer %s" %meta_selftestdir)
140 else:
141 log.error("could not locate meta-selftest in:\n%s"
142 %meta_selftestdir)
143 return False
136 144
137 if "buildhistory.bbclass" in get_bb_var("BBINCLUDED"): 145 if "buildhistory.bbclass" in get_bb_var("BBINCLUDED"):
138 log.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.") 146 log.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.")