mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
oeqa/selftest/context: Reload testlayer_path when meta-selftest isn't added
When add meta-selftest by the script the testlayer_path needs to be reloaded to avoid None value. (From OE-Core rev: d1120849e12c46aa46b02905a3f43c0853bd11a0) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d8380d098a
commit
7a19bbcf81
@@ -131,6 +131,7 @@ class OESelftestTestContextExecutor(OETestContextExecutor):
|
||||
runCmd("bitbake-layers add-layer %s" %meta_selftestdir)
|
||||
# reload data is needed because a meta-selftest layer was add
|
||||
self.tc.td = get_bb_vars()
|
||||
self.tc.testlayer_path = get_test_layer()
|
||||
else:
|
||||
self.tc.logger.error("could not locate meta-selftest in:\n%s" % meta_selftestdir)
|
||||
raise OEQAPreRun
|
||||
|
||||
Reference in New Issue
Block a user