From: azv Date: Thu, 17 Oct 2019 10:37:35 +0000 (+0300) Subject: HDF tests: close current SALOME session by the port instead of closing all SALOME... X-Git-Tag: V9_4_0rc1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a54d0f9984358ea97d3481d8bf389f06b7e88f2c;p=modules%2Fshaper.git HDF tests: close current SALOME session by the port instead of closing all SALOME entities (issue #3051). --- diff --git a/test.hdfs/test_hdf.py b/test.hdfs/test_hdf.py index b1d399187..9dbc1578c 100644 --- a/test.hdfs/test_hdf.py +++ b/test.hdfs/test_hdf.py @@ -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)