]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest/context: Reload testlayer_path when meta-selftest isn't added
authorAníbal Limón <anibal.limon@linux.intel.com>
Thu, 15 Jun 2017 22:09:50 +0000 (17:09 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Jun 2017 10:43:37 +0000 (11:43 +0100)
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>
meta/lib/oeqa/selftest/context.py

index 8c8439bf283ce1d596e844b6b148a9c5231d58cd..ca87398224c3db72cee86963db46f6126b384ae6 100644 (file)
@@ -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