summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/oetest.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 9cb8a53795..f54113626b 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -13,6 +13,7 @@ import inspect
13import subprocess 13import subprocess
14import bb 14import bb
15from oeqa.utils.decorators import LogResults 15from oeqa.utils.decorators import LogResults
16from oeqa.targetcontrol import QemuTarget
16from sys import exc_info, exc_clear 17from sys import exc_info, exc_clear
17 18
18def loadTests(tc, type="runtime"): 19def loadTests(tc, type="runtime"):
@@ -123,12 +124,13 @@ class oeRuntimeTest(oeTest):
123 if not exc_info() == (None, None, None): 124 if not exc_info() == (None, None, None):
124 exc_clear() 125 exc_clear()
125 self.tc.host_dumper.create_dir(self._testMethodName) 126 self.tc.host_dumper.create_dir(self._testMethodName)
126 self.target.target_dumper.dump_target(
127 self.tc.host_dumper.dump_dir)
128 self.tc.host_dumper.dump_host() 127 self.tc.host_dumper.dump_host()
129 print ("%s dump data from host and target " 128 #Only QemuTarget has a serial console
130 "stored in %s" % (self._testMethodName, 129 if (isinstance(self.target, QemuTarget)):
131 self.target.target_dumper.dump_dir)) 130 self.target.target_dumper.dump_target(
131 self.tc.host_dumper.dump_dir)
132 print ("%s dump data stored in %s" % (self._testMethodName,
133 self.tc.host_dumper.dump_dir))
132 134
133 #TODO: use package_manager.py to install packages on any type of image 135 #TODO: use package_manager.py to install packages on any type of image
134 def install_packages(self, packagelist): 136 def install_packages(self, packagelist):