summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-09-01 07:36:29 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-03 12:43:16 +0100
commit53ab41a5f6d20e911362a9261ae528452bb71bbd (patch)
tree0962c78c4f378c3de0fc25810778a49f0a35d168 /meta/lib/oeqa/oetest.py
parent170b89d9863a1b8560f397d3bb7a1eafd7c61e1e (diff)
downloadpoky-53ab41a5f6d20e911362a9261ae528452bb71bbd.tar.gz
qemurunner: Added host dumps when there are errors
This adds an instance of HostDumper to qemurunner, with this instance now is possible to get dumps from the host when there is an error. This adds dump points in the next cases: - runqemu exits before seeing qemu pid - Fail to get qemu process arguments - Not reach login banner before timeout - qemu pid never appears This also modifies the constructors of BaseDumper, HostDumper and TargetDumper, they don't require the datastore anymore, but the feature to replace datastore variables has been lost (never used) [YOCTO #8118] (From OE-Core rev: b0af40fb76cd5035696e9d8a44f815f64214d23a) 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.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index f54113626b..4224206546 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -123,14 +123,14 @@ class oeRuntimeTest(oeTest):
123 # If a test fails or there is an exception 123 # If a test fails or there is an exception
124 if not exc_info() == (None, None, None): 124 if not exc_info() == (None, None, None):
125 exc_clear() 125 exc_clear()
126 self.tc.host_dumper.create_dir(self._testMethodName) 126 #Only dump for QemuTarget
127 self.tc.host_dumper.dump_host()
128 #Only QemuTarget has a serial console
129 if (isinstance(self.target, QemuTarget)): 127 if (isinstance(self.target, QemuTarget)):
128 self.tc.host_dumper.create_dir(self._testMethodName)
129 self.tc.host_dumper.dump_host()
130 self.target.target_dumper.dump_target( 130 self.target.target_dumper.dump_target(
131 self.tc.host_dumper.dump_dir) 131 self.tc.host_dumper.dump_dir)
132 print ("%s dump data stored in %s" % (self._testMethodName, 132 print ("%s dump data stored in %s" % (self._testMethodName,
133 self.tc.host_dumper.dump_dir)) 133 self.tc.host_dumper.dump_dir))
134 134
135 #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
136 def install_packages(self, packagelist): 136 def install_packages(self, packagelist):