diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-12-05 11:43:21 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:20 +0000 |
commit | 2d34b085333ff1d23fc00cacd68aaeed3d630571 (patch) | |
tree | 42628ee62ac009a7bfb4a21ef379172294f2dd6c /meta/classes | |
parent | 1247118870872f2e8fbbff031a4539c6cbe5a917 (diff) | |
download | poky-2d34b085333ff1d23fc00cacd68aaeed3d630571.tar.gz |
oeqa/utils/dump: Move get_host_dumper to OERuntimeTestContextExecutor class
To avoid getVar calls inside a utils module, also moves
get_host_dumper import inside testexport isn't needed.
[YOCTO #10231]
(From OE-Core rev: f8beaf94e943a8b20d146be47a756af312ef107c)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/testexport.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/testimage.bbclass | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index 00cf24e735..5398b3c767 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass | |||
@@ -163,7 +163,6 @@ def exportTests(d,tc): | |||
163 | def testexport_main(d): | 163 | def testexport_main(d): |
164 | from oeqa.oetest import ExportTestContext | 164 | from oeqa.oetest import ExportTestContext |
165 | from oeqa.targetcontrol import get_target_controller | 165 | from oeqa.targetcontrol import get_target_controller |
166 | from oeqa.utils.dump import get_host_dumper | ||
167 | 166 | ||
168 | test_create_extract_dirs(d) | 167 | test_create_extract_dirs(d) |
169 | export_dir = d.getVar("TEST_EXPORT_DIR") | 168 | export_dir = d.getVar("TEST_EXPORT_DIR") |
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 6fed408613..62ecaef502 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -128,8 +128,8 @@ def testimage_main(d): | |||
128 | import signal | 128 | import signal |
129 | from oeqa.oetest import ImageTestContext | 129 | from oeqa.oetest import ImageTestContext |
130 | from oeqa.targetcontrol import get_target_controller | 130 | from oeqa.targetcontrol import get_target_controller |
131 | from oeqa.utils.dump import get_host_dumper | ||
132 | from bb.utils import export_proxies | 131 | from bb.utils import export_proxies |
132 | from oeqa.utils.dump import HostDumper | ||
133 | 133 | ||
134 | pn = d.getVar("PN") | 134 | pn = d.getVar("PN") |
135 | bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR")) | 135 | bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR")) |
@@ -139,7 +139,8 @@ def testimage_main(d): | |||
139 | export_proxies(d) | 139 | export_proxies(d) |
140 | 140 | ||
141 | # we need the host dumper in test context | 141 | # we need the host dumper in test context |
142 | host_dumper = get_host_dumper(d) | 142 | host_dumper = HostDumper(d.getVar("testimage_dump_host", True), |
143 | d.getVar("TESTIMAGE_DUMP_DIR", True)) | ||
143 | 144 | ||
144 | # the robot dance | 145 | # the robot dance |
145 | target = get_target_controller(d) | 146 | target = get_target_controller(d) |