summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/utils/qemurunner.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/utils/qemurunner.py')
-rw-r--r--meta/lib/oeqa/utils/qemurunner.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 9073315fba..427ae23b1b 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -394,9 +394,10 @@ class QemuRunner:
394 f = open(self.qemu_pidfile, 'r') 394 f = open(self.qemu_pidfile, 'r')
395 qemu_pid = f.read() 395 qemu_pid = f.read()
396 f.close() 396 f.close()
397 #logger.info("qemu_pid: %s" % qemu_pid) 397 qemupid = int(qemu_pid)
398 self.qemupid = int(qemu_pid) 398 if os.path.exists("/proc/" + str(qemupid)):
399 return True 399 self.qemupid = qemupid
400 return True
400 return False 401 return False
401 402
402 def run_serial(self, command, raw=False, timeout=5): 403 def run_serial(self, command, raw=False, timeout=5):