Browse Source

Chmod 777 results directory

Hamilton Turner 10 years ago
parent
commit
998405fbb4
1 changed files with 5 additions and 3 deletions
  1. 5 3
      toolset/benchmark/benchmarker.py

+ 5 - 3
toolset/benchmark/benchmarker.py

@@ -275,11 +275,13 @@ class Benchmarker:
     
     # Give testrunner permission to write into results directory
     # so LOGDIR param always works in setup.sh
-    # While 664 is more preferrable, we would have to ensure that 
+    # While 775 is more preferrable, we would have to ensure that 
     # testrunner is in the group of the current user
     if not self.os.lower() == 'windows':
-      mode666 = stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IWGRP | stat.S_IROTH | stat.S_IWOTH
-      os.chmod(path, mode666)
+      mode777 = (stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR | 
+                stat.S_IRGRP | stat.S_IWGRP | stat.S_IXGRP | 
+                stat.S_IROTH | stat.S_IWOTH | stat.S_IXOTH)
+      os.chmod(path, mode777)
     return path
 
   ############################################################