diff options
Diffstat (limited to 'meta/lib/oeqa/utils')
-rw-r--r-- | meta/lib/oeqa/utils/dump.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/meta/lib/oeqa/utils/dump.py b/meta/lib/oeqa/utils/dump.py index 44037a989d..5a7edc1a86 100644 --- a/meta/lib/oeqa/utils/dump.py +++ b/meta/lib/oeqa/utils/dump.py | |||
@@ -5,12 +5,6 @@ import datetime | |||
5 | import itertools | 5 | import itertools |
6 | from .commands import runCmd | 6 | from .commands import runCmd |
7 | 7 | ||
8 | def get_host_dumper(d): | ||
9 | cmds = d.getVar("testimage_dump_host") | ||
10 | parent_dir = d.getVar("TESTIMAGE_DUMP_DIR") | ||
11 | return HostDumper(cmds, parent_dir) | ||
12 | |||
13 | |||
14 | class BaseDumper(object): | 8 | class BaseDumper(object): |
15 | """ Base class to dump commands from host/target """ | 9 | """ Base class to dump commands from host/target """ |
16 | 10 | ||
@@ -77,13 +71,12 @@ class HostDumper(BaseDumper): | |||
77 | result = runCmd(cmd, ignore_status=True) | 71 | result = runCmd(cmd, ignore_status=True) |
78 | self._write_dump(cmd.split()[0], result.output) | 72 | self._write_dump(cmd.split()[0], result.output) |
79 | 73 | ||
80 | |||
81 | class TargetDumper(BaseDumper): | 74 | class TargetDumper(BaseDumper): |
82 | """ Class to get dumps from target, it only works with QemuRunner """ | 75 | """ Class to get dumps from target, it only works with QemuRunner """ |
83 | 76 | ||
84 | def __init__(self, cmds, parent_dir, qemurunner): | 77 | def __init__(self, cmds, parent_dir, runner): |
85 | super(TargetDumper, self).__init__(cmds, parent_dir) | 78 | super(TargetDumper, self).__init__(cmds, parent_dir) |
86 | self.runner = qemurunner | 79 | self.runner = runner |
87 | 80 | ||
88 | def dump_target(self, dump_dir=""): | 81 | def dump_target(self, dump_dir=""): |
89 | if dump_dir: | 82 | if dump_dir: |