summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-08-24 20:31:08 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 12:36:13 +0100
commit277571bbd0a7864e996fad5acd3a10d31c84fdbd (patch)
treec6acdb81fb27163c41f9803de30870f451db225e /meta/lib/oeqa
parentc78ba0d4f072e1606e9934823138d9302cc49ab8 (diff)
downloadpoky-277571bbd0a7864e996fad5acd3a10d31c84fdbd.tar.gz
oetest: Fix regresion when testing real hardware
This fix the regresion introduced in commit 9c72c1a5aa0b49d3895bbefee7a264adfcc6f4ca when testing with real hardware. This regression happens when a test in real hardware fails. [YOCTO #8203] (From OE-Core rev: e63889cc70041ada022c2ebe789b569f9e44dbd6) 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')
-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):