Skip to content

Commit

Permalink
Changing permissions only on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Eldar Akchurin authored and eldakms committed Mar 21, 2016
1 parent c5ce6e8 commit c0cba4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tests/EndToEndTests/TestDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,10 @@ def runImpl(self, flavor, device, args):
if args.verbose:
six.print_(self.fullName + ":>" + logFile)
with open(logFile, "w") as output:
testScript = self.testDir + "/run-test"
st = os.stat(testScript)
os.chmod(testScript, st.st_mode | stat.S_IEXEC | stat.S_IXOTH)
if not windows:
testScript = self.testDir + "/run-test"
st = os.stat(testScript)
os.chmod(testScript, st.st_mode | stat.S_IEXEC | stat.S_IXOTH)
cmdLine = ["bash", "-c", self.testDir + "/run-test 2>&1"]
process = subprocess.Popen(cmdLine, stdout=subprocess.PIPE)

Expand Down

0 comments on commit c0cba4a

Please sign in to comment.