summaryrefslogtreecommitdiff
path: root/scripts/Expect.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2012-11-30 12:02:35 -0330
committerMatthew Newhook <matthew@zeroc.com>2012-11-30 12:02:35 -0330
commitf0285376f626c72a3ee221ac3fd5158aabf0ebe8 (patch)
treeba322ee197aefd9e863219f89c1d8e8b133c1c25 /scripts/Expect.py
parentIceBox VB demo configuration fix. (diff)
downloadice-f0285376f626c72a3ee221ac3fd5158aabf0ebe8.tar.bz2
ice-f0285376f626c72a3ee221ac3fd5158aabf0ebe8.tar.xz
ice-f0285376f626c72a3ee221ac3fd5158aabf0ebe8.zip
ICE-5012 Demo script failures
Diffstat (limited to 'scripts/Expect.py')
-rwxr-xr-xscripts/Expect.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Expect.py b/scripts/Expect.py
index 0f104ccb56f..b296e3e9a83 100755
--- a/scripts/Expect.py
+++ b/scripts/Expect.py
@@ -425,12 +425,11 @@ class Expect (object):
if self.logfile:
self.logfile.write('%s: sendline: "%s"\n' % (self.desc, escape(data)))
self.logfile.flush()
+ data = data + "\n"
if win32 or sys.version_info[0] == 2:
self.p.stdin.write(data)
- self.p.stdin.write("\n")
else:
self.p.stdin.write(data.encode("utf-8"))
- self.p.stdin.write("\n".encode("utf-8"))
def wait(self, timeout = None):
"""Wait for the application to terminate for up to timeout seconds, or