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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/qemurunner.py b/meta/lib/oeqa/utils/qemurunner.py
index 4de3c64d7d..11186d6b26 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -94,7 +94,11 @@ class QemuRunner:
94 self.qemuparams = self.qemuparams[:-1] + " " + qemuparams + " " + '\"' 94 self.qemuparams = self.qemuparams[:-1] + " " + qemuparams + " " + '\"'
95 95
96 launch_cmd = 'runqemu %s %s %s' % (self.machine, self.rootfs, self.qemuparams) 96 launch_cmd = 'runqemu %s %s %s' % (self.machine, self.rootfs, self.qemuparams)
97 self.runqemu = subprocess.Popen(launch_cmd,shell=True,stdout=subprocess.PIPE,stderr=subprocess.STDOUT,preexec_fn=os.setpgrp) 97 # FIXME: We pass in stdin=subprocess.PIPE here to work around stty
98 # blocking at the end of the runqemu script when using this within
99 # oe-selftest (this makes stty error out immediately). There ought
100 # to be a proper fix but this will suffice for now.
101 self.runqemu = subprocess.Popen(launch_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE, preexec_fn=os.setpgrp)
98 102
99 logger.info("runqemu started, pid is %s" % self.runqemu.pid) 103 logger.info("runqemu started, pid is %s" % self.runqemu.pid)
100 logger.info("waiting at most %s seconds for qemu pid" % self.runqemutime) 104 logger.info("waiting at most %s seconds for qemu pid" % self.runqemutime)