From c2fac88b2003c637e6d0878614bcb20cfa08f80c Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 17 Oct 2019 13:37:35 +0300 Subject: [PATCH] HDF tests: close current SALOME session by the port instead of closing all SALOME entities (issue #3051). --- test.hdfs/test_hdf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.39.2