]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
HDF tests: close current SALOME session by the port instead of closing all SALOME...
authorazv <azv@opencascade.com>
Thu, 17 Oct 2019 10:37:35 +0000 (13:37 +0300)
committerazv <azv@opencascade.com>
Thu, 17 Oct 2019 10:37:35 +0000 (13:37 +0300)
test.hdfs/test_hdf.py

index b1d3991870c4e0a6a4b3162dd121c3801e9e41c3..9dbc1578c1e771fc390ff85edb1096aa019ff787 100644 (file)
@@ -17,7 +17,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-import salome, os, sys
+import salome, salome_utils, os, sys
 import SalomePyQt
 
 import unittest
@@ -84,7 +84,8 @@ if __name__ == "__main__":
   errFile.close()
 
   # close Salome GUI
-  proc = subprocess.Popen(salomeKernelDir + "/bin/salome/killSalome.py")
+  port = salome_utils.getPortNumber()
+  proc = subprocess.Popen([salomeKernelDir + "/bin/salome/killSalomeWithPort.py", "{}".format(port)])
 
   try:
     os.remove(salomePortFile)