]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Almost OK. Auto shutdown to be done.
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 24 Aug 2021 06:07:43 +0000 (08:07 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 24 Aug 2021 06:07:43 +0000 (08:07 +0200)
test.hdfs/test_hdf.py
test.hdfs/testme.py

index d0ab41a077273b9f029e2dad3bc6bd713615a45d..b661dbc00b2afda52540951a9be3f677ac86c02b 100644 (file)
@@ -32,8 +32,7 @@ class TestHDF(unittest.TestCase):
   reffile = ""
 
   def setUp(self):
-    salome.salome_close()
-
+    salome.standalone()
     salome.salome_init(self.testfile, embedded=1)
     myStudyName = salome.myStudy._get_Name()
     self.session = salome.naming_service.Resolve('/Kernel/Session')
index ec70cd79fe1a48ebc01bfc9a4f056ce7dd617d69..9dd3ebc0e200e1cba0a38d9ca5c93711f38da4ec 100644 (file)
@@ -37,16 +37,11 @@ if __name__ == '__main__':
 
   tempdir = tempfile.gettempdir()
   testlogfile = tempdir + "/test.log"
-  # remove port file if any
-  try:
-    os.remove(portlogfile)
-  except:
-    pass
 
   isOk = True
   error = ""
 
-  proc = subprocess.Popen(["runSalome.py", "--modules", "SHAPER,GEOM,SHAPERSTUDY", "--gui", "--splash", "0", "test_hdf.py", "args:" + hdffile + "," + testdatafile + "," + testlogfile], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+  proc = subprocess.Popen(["runSalomeSL.py", "--modules", "SHAPER,GEOM,SHAPERSTUDY", "--gui", "--splash", "0", "test_hdf.py", "args:" + hdffile + "," + testdatafile + "," + testlogfile], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
   try:
     proc.communicate(timeout = testTimeout)
   except TimeoutExpired: