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=9c1864a674bf587b7c9a925e13d923d4fe8db27c;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: