summaryrefslogtreecommitdiff
path: root/QMTest
diff options
context:
space:
mode:
Diffstat (limited to 'QMTest')
-rw-r--r--QMTest/TestCmd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py
index 370101bb..b97f1032 100644
--- a/QMTest/TestCmd.py
+++ b/QMTest/TestCmd.py
@@ -783,7 +783,7 @@ class Popen(subprocess.Popen):
return 0
try:
- written = os.write(self.stdin.fileno(), input)
+ written = os.write(self.stdin.fileno(), bytearray(input,'utf-8'))
except OSError as why:
if why.args[0] == errno.EPIPE: #broken pipe
return self._close('stdin')
@@ -1355,6 +1355,7 @@ class TestCmd(object):
if timeout:
self.timer = threading.Timer(float(timeout), self._timeout)
self.timer.start()
+ print("CMD:%s"%cmd)
p = Popen(cmd,
stdin=stdin,
stdout=subprocess.PIPE,