summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/context.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-06-15 17:09:50 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-23 11:43:37 +0100
commitd1120849e12c46aa46b02905a3f43c0853bd11a0 (patch)
treebdec2c3143158687541b8aec965806b30dc182ac /meta/lib/oeqa/selftest/context.py
parent767b68e6ca22512ff80e6fbc42154f3f0c2206c0 (diff)
downloadopenembedded-core-contrib-d1120849e12c46aa46b02905a3f43c0853bd11a0.tar.gz
openembedded-core-contrib-d1120849e12c46aa46b02905a3f43c0853bd11a0.tar.bz2
openembedded-core-contrib-d1120849e12c46aa46b02905a3f43c0853bd11a0.zip
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. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/selftest/context.py')
-rw-r--r--meta/lib/oeqa/selftest/context.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/context.py b/meta/lib/oeqa/selftest/context.py
index 8c8439bf28..ca87398224 100644
--- a/meta/lib/oeqa/selftest/context.py
+++ b/meta/lib/oeqa/selftest/context.py
@@ -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