X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FTest%2FTestImportImage_2.py;h=9a4230f93920f4a26681d8e5e38846b7966f5486;hb=ce18c435519e1d2762d34cd02900c9b9210e5cba;hp=c292972e18cf4a87d37a710aa33f1540db1f6dc0;hpb=5b64b41c61abc1bcff07d8d7970912710fe83254;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/Test/TestImportImage_2.py b/src/ExchangePlugin/Test/TestImportImage_2.py index c292972e1..9a4230f93 100755 --- a/src/ExchangePlugin/Test/TestImportImage_2.py +++ b/src/ExchangePlugin/Test/TestImportImage_2.py @@ -111,6 +111,8 @@ assert(Scale_1.result().resultSubShapePair()[0].hasTexture()) # Close SALOME GUI import salome_utils -import subprocess -port = salome_utils.getPortNumber() -proc = subprocess.Popen(["killSalomeWithPort.py", "{}".format(port)]) +import killSalomeWithPort + +port = salome_utils.getPortNumber(False) +if port: + killSalomeWithPort.killMyPort(port)