diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-29 17:42:48 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-05 20:35:27 +0000 |
commit | a4031935a7b8ea4f61b9020c1aa5598e186e7ad7 (patch) | |
tree | 153a5714e8d70bda62f03e46260df58087f10323 /meta/lib/oeqa/utils/qemurunner.py | |
parent | 51a84937d32a85cbdb7d5b1d1ec69a290d0c303b (diff) | |
download | openembedded-core-contrib-a4031935a7b8ea4f61b9020c1aa5598e186e7ad7.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r-- | meta/lib/oeqa/utils/qemurunner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py index c025eb09c5..60e1cf8e08 100644 --- a/meta/lib/oeqa/utils/qemurunner.py +++ b/meta/lib/oeqa/utils/qemurunner.py @@ -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 |