Salome HOME
[bos #32960] mkarpuni/32960_wrong_permissions_of_logs_directory
authorMargarita KARPUNINA <margarita.karpunina@opencascade.com>
Thu, 24 Nov 2022 12:50:58 +0000 (15:50 +0300)
committerMargarita KARPUNINA <margarita.karpunina@opencascade.com>
Thu, 24 Nov 2022 13:14:15 +0000 (16:14 +0300)
Wrong permissions of logs directory created on tests running
Fixed by using makeDir function from salome_utils package

bin/addToKillList.py

index ea06c5755cd3cd6675724ade37a2e1359e74ce8b..840763306d6ef3f6f220cc9792d0956cf4ca08bd 100755 (executable)
@@ -78,7 +78,9 @@ def addToKillList(command_pid, command, port=None):
             if verbose(): print("addToKillList: %s : %s" % ( str(command_pid), command ))
             process_ids.append({int(command_pid): [command]})
             dir = os.path.dirname(filedict)
-            if not os.path.exists(dir): os.makedirs(dir, 0o777)
+            if not os.path.exists(dir):
+                from salome_utils import makeDir
+                makeDir(dir)
             with open(filedict,'wb') as fpid:
                 pickle.dump(process_ids, fpid)
         except Exception: