From: Margarita KARPUNINA Date: Thu, 24 Nov 2022 12:50:58 +0000 (+0300) Subject: [bos #32960] X-Git-Tag: V9_11_0a1~14^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmkarpuni%2F32960_wrong_permissions_of_logs_directory;p=modules%2Fkernel.git [bos #32960] Wrong permissions of logs directory created on tests running Fixed by using makeDir function from salome_utils package --- diff --git a/bin/addToKillList.py b/bin/addToKillList.py index ea06c5755..840763306 100755 --- a/bin/addToKillList.py +++ b/bin/addToKillList.py @@ -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: