# 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
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)