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_5_0a1~167^2~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c2fac88b2003c637e6d0878614bcb20cfa08f80c;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)