mirror of
https://git.yoctoproject.org/poky
synced 2026-06-08 15:29:50 +00:00
oeqa/qemurunner: Fix cmdline variable use before reference
This avoids some tracebacks we've seen on failed autobuilder builds which would allow the real error to be seen. (From OE-Core rev: a4031935a7b8ea4f61b9020c1aa5598e186e7ad7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -242,8 +242,8 @@ class QemuRunner:
|
||||
self.logger.debug("qemu started in %s seconds - qemu procces pid is %s (%s)" %
|
||||
(time.time() - (endtime - self.runqemutime),
|
||||
self.qemupid, time.strftime("%D %H:%M:%S")))
|
||||
cmdline = ''
|
||||
if get_ip:
|
||||
cmdline = ''
|
||||
with open('/proc/%s/cmdline' % self.qemupid) as p:
|
||||
cmdline = p.read()
|
||||
# It is needed to sanitize the data received
|
||||
|
||||
Reference in New Issue
Block a user