diff options
| author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-06-15 17:09:50 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-23 11:44:13 +0100 |
| commit | 7a19bbcf81ada2c9fbb2b65ac638781ad8f15740 (patch) | |
| tree | 252927fe5fcf33a08e159841155d211e19ae8509 /meta/lib | |
| parent | d8380d098a290510b442a7abd2dd5a50cabf5844 (diff) | |
| download | poky-7a19bbcf81ada2c9fbb2b65ac638781ad8f15740.tar.gz | |
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>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/context.py | 1 |
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): | |||
| 131 | runCmd("bitbake-layers add-layer %s" %meta_selftestdir) | 131 | runCmd("bitbake-layers add-layer %s" %meta_selftestdir) |
| 132 | # reload data is needed because a meta-selftest layer was add | 132 | # reload data is needed because a meta-selftest layer was add |
| 133 | self.tc.td = get_bb_vars() | 133 | self.tc.td = get_bb_vars() |
| 134 | self.tc.testlayer_path = get_test_layer() | ||
| 134 | else: | 135 | else: |
| 135 | self.tc.logger.error("could not locate meta-selftest in:\n%s" % meta_selftestdir) | 136 | self.tc.logger.error("could not locate meta-selftest in:\n%s" % meta_selftestdir) |
| 136 | raise OEQAPreRun | 137 | raise OEQAPreRun |
