diff options
| -rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index 486d2bb893..41c6bb33d6 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py | |||
| @@ -254,6 +254,15 @@ class QemuRunner: | |||
| 254 | if not self.is_alive(): | 254 | if not self.is_alive(): |
| 255 | self.logger.error("Qemu pid didn't appear in %s seconds (%s)" % | 255 | self.logger.error("Qemu pid didn't appear in %s seconds (%s)" % |
| 256 | (self.runqemutime, time.strftime("%D %H:%M:%S"))) | 256 | (self.runqemutime, time.strftime("%D %H:%M:%S"))) |
| 257 | |||
| 258 | qemu_pid = None | ||
| 259 | if os.path.isfile(self.qemu_pidfile): | ||
| 260 | with open(self.qemu_pidfile, 'r') as f: | ||
| 261 | qemu_pid = f.read().strip() | ||
| 262 | |||
| 263 | self.logger.error("Status information, poll status: %s, pidfile exists: %s, pidfile contents %s, proc pid exists %s" | ||
| 264 | % (self.runqemu.poll(), os.path.isfile(self.qemu_pidfile), str(qemu_pid), os.path.exists("/proc/" + qemu_pid))) | ||
| 265 | |||
| 257 | # Dump all processes to help us to figure out what is going on... | 266 | # Dump all processes to help us to figure out what is going on... |
| 258 | ps = subprocess.Popen(['ps', 'axww', '-o', 'pid,ppid,command '], stdout=subprocess.PIPE).communicate()[0] | 267 | ps = subprocess.Popen(['ps', 'axww', '-o', 'pid,ppid,command '], stdout=subprocess.PIPE).communicate()[0] |
| 259 | processes = ps.decode("utf-8") | 268 | processes = ps.decode("utf-8") |
