summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-14 21:40:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-14 21:41:39 +0100
commitca701cb92dcf186664d9b1f82c679e4f9cc388ec (patch)
tree28eb820a8f46b13d1041d6046e85c8254ef035e4 /meta/lib
parent7152db44930b5e0e985cef103e8b65c138911232 (diff)
downloadpoky-ca701cb92dcf186664d9b1f82c679e4f9cc388ec.tar.gz
oeqa/utils/qemurunner: Fix missing pid file tracebacks
One element of the error message guarded against None as a value but I missed the other, fix this. (From OE-Core rev: dbce6baec68d7658453b8c44159e1d1fef746151) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 41c6bb33d6..01cbf52b8b 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -261,7 +261,7 @@ class QemuRunner:
261 qemu_pid = f.read().strip() 261 qemu_pid = f.read().strip()
262 262
263 self.logger.error("Status information, poll status: %s, pidfile exists: %s, pidfile contents %s, proc pid exists %s" 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))) 264 % (self.runqemu.poll(), os.path.isfile(self.qemu_pidfile), str(qemu_pid), os.path.exists("/proc/" + str(qemu_pid))))
265 265
266 # 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...
267 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]