Salome HOME
bos #26515 [CEA 24622] Failing SMESH tests
authoreap <eap@opencascade.com>
Wed, 20 Oct 2021 16:30:23 +0000 (19:30 +0300)
committereap <eap@opencascade.com>
Wed, 20 Oct 2021 16:30:23 +0000 (19:30 +0300)
 make log file name unique

src/Tools/blocFissure/CasTests/blocFissureTest.py
src/Tools/blocFissure/gmu/initLog.py

index 49585fc..8c2d51f 100755 (executable)
@@ -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
index ee9d186..c665e5c 100644 (file)
@@ -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