From f0285376f626c72a3ee221ac3fd5158aabf0ebe8 Mon Sep 17 00:00:00 2001 From: Matthew Newhook Date: Fri, 30 Nov 2012 12:02:35 -0330 Subject: ICE-5012 Demo script failures --- scripts/Expect.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/Expect.py') 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 -- cgit v1.2.3