From 63d89b45fcdffeb46a091cc64e58f7d44b1b355f Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 20 Oct 2021 19:30:23 +0300 Subject: [PATCH] bos #26515 [CEA 24622] Failing SMESH tests make log file name unique --- src/Tools/blocFissure/CasTests/blocFissureTest.py | 2 +- src/Tools/blocFissure/gmu/initLog.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tools/blocFissure/CasTests/blocFissureTest.py b/src/Tools/blocFissure/CasTests/blocFissureTest.py index 49585fc20..8c2d51f45 100755 --- a/src/Tools/blocFissure/CasTests/blocFissureTest.py +++ b/src/Tools/blocFissure/CasTests/blocFissureTest.py @@ -47,7 +47,7 @@ from blocFissure.gmu import initLog from blocFissure.gmu.casStandard import casStandard # ----------------------------------------------------------------------------------------------- -LOGFILE = os.path.join(tempfile.gettempdir(),"blocFissure.log") +LOGFILE = tempfile.NamedTemporaryFile().name + "_blocFissure.log" #initLog.setDebug(LOGFILE) # debug = 10 #initLog.setVerbose(LOGFILE) # info = 20 #initLog.setRelease(LOGFILE) # warning = 30 diff --git a/src/Tools/blocFissure/gmu/initLog.py b/src/Tools/blocFissure/gmu/initLog.py index ee9d1863d..c665e5c75 100644 --- a/src/Tools/blocFissure/gmu/initLog.py +++ b/src/Tools/blocFissure/gmu/initLog.py @@ -30,7 +30,7 @@ error = 40 critical = 50 always = 100 -LOGFILE = os.path.join(tempfile.gettempdir(),"blocFissure.log") +LOGFILE = tempfile.NamedTemporaryFile().name + "_blocFissure.log" LOG_LEVEL = warning -- 2.39.2