diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2015-09-01 07:36:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 12:43:17 +0100 |
commit | a2b0d0423555e9b386f1a7bb620837c23be3854e (patch) | |
tree | 813298c5de3b509b12ac03e3222744305da458ca /meta/lib/oeqa/oetest.py | |
parent | 53ab41a5f6d20e911362a9261ae528452bb71bbd (diff) | |
download | poky-a2b0d0423555e9b386f1a7bb620837c23be3854e.tar.gz |
runexported: Make it compatible with host dump
Currently it is not possible to run a exported test,
but this patch will allow to use the HosDumper class
when running a exported test, otherwise the HostDumper
class will break runexpored test.
[YOCTO #8118]
(From OE-Core rev: 25814dbdd12db0499e4d81876873158e1b8a4fcc)
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r-- | meta/lib/oeqa/oetest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py index 4224206546..4773bdd4d8 100644 --- a/meta/lib/oeqa/oetest.py +++ b/meta/lib/oeqa/oetest.py | |||
@@ -13,7 +13,6 @@ import inspect | |||
13 | import subprocess | 13 | import subprocess |
14 | import bb | 14 | import bb |
15 | from oeqa.utils.decorators import LogResults | 15 | from oeqa.utils.decorators import LogResults |
16 | from oeqa.targetcontrol import QemuTarget | ||
17 | from sys import exc_info, exc_clear | 16 | from sys import exc_info, exc_clear |
18 | 17 | ||
19 | def loadTests(tc, type="runtime"): | 18 | def loadTests(tc, type="runtime"): |
@@ -124,7 +123,7 @@ class oeRuntimeTest(oeTest): | |||
124 | if not exc_info() == (None, None, None): | 123 | if not exc_info() == (None, None, None): |
125 | exc_clear() | 124 | exc_clear() |
126 | #Only dump for QemuTarget | 125 | #Only dump for QemuTarget |
127 | if (isinstance(self.target, QemuTarget)): | 126 | if (type(self.target).__name__ == "QemuTarget"): |
128 | self.tc.host_dumper.create_dir(self._testMethodName) | 127 | self.tc.host_dumper.create_dir(self._testMethodName) |
129 | self.tc.host_dumper.dump_host() | 128 | self.tc.host_dumper.dump_host() |
130 | self.target.target_dumper.dump_target( | 129 | self.target.target_dumper.dump_target( |