]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Stabilize SHAPER tests
authorvsr <vsr@opencascade.com>
Tue, 26 Oct 2021 10:28:15 +0000 (13:28 +0300)
committervsr <vsr@opencascade.com>
Tue, 26 Oct 2021 10:28:15 +0000 (13:28 +0300)
test.hdfs/testme.py

index 9dd3ebc0e200e1cba0a38d9ca5c93711f38da4ec..5a0d936cfb22a35f003d7ae8502102352ae4a8b5 100644 (file)
@@ -35,8 +35,9 @@ if __name__ == '__main__':
     hdffile = sys.argv[1]
     testdatafile = sys.argv[2]
 
-  tempdir = tempfile.gettempdir()
-  testlogfile = tempdir + "/test.log"
+  tempfile = tempfile.NamedTemporaryFile()
+  testlogfile = tempfile.name
+  tempfile.close()
 
   isOk = True
   error = ""