On Windows, executables have a '.exe' suffix which needs to be added for
them to be found in a path.
Also, files need to be explicitly opened as binary.
Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
else: logFile = None\r
\r
if toolName is None: toolName = self.toolName\r
+ if sys.platform == "win32":\r
+ toolName += ".exe"\r
bin = self.FindToolBin(toolName)\r
if logFile is not None:\r
logFile = open(os.path.join(self.testDir, logFile), 'w')\r
return open(os.path.join(self.testDir, fileName), mode)\r
\r
def ReadTmpFile(self, fileName):\r
- f = open(self.GetTmpFilePath(fileName), 'r')\r
+ f = open(self.GetTmpFilePath(fileName), 'rb')\r
data = f.read()\r
f.close()\r
return data\r