From: José Fonseca Date: Thu, 3 May 2012 10:15:12 +0000 (+0100) Subject: Handle CRLF lines in tool_driver.py X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=commitdiff_plain;h=13e2c906a5e6ece1cf9ba1ed23551b570d7180fd Handle CRLF lines in tool_driver.py --- diff --git a/tool_driver.py b/tool_driver.py index 4cbcc37..962db1e 100755 --- a/tool_driver.py +++ b/tool_driver.py @@ -81,7 +81,7 @@ class ToolDriver(Driver): args = refStream.readline().split() cmd = [self.options.apitrace] + args cwd = os.path.dirname(os.path.abspath(refScript)) - p = popen(cmd, cwd=cwd, stdout=subprocess.PIPE) + p = popen(cmd, cwd=cwd, stdout=subprocess.PIPE, universal_newlines=True) comparer = AsciiComparer(p.stdout, refStream, self.options.verbose) comparer.compare()