Salome HOME
Fix tests instability
authorvsr <vsr@opencascade.com>
Mon, 15 Nov 2021 09:34:19 +0000 (12:34 +0300)
committervsr <vsr@opencascade.com>
Mon, 15 Nov 2021 09:34:19 +0000 (12:34 +0300)
src/ExchangePlugin/Test/TestImportImage_1.py
src/ExchangePlugin/Test/TestImportImage_2.py

index 1fcc4645bb4166a763985e8f373bcf8222615097..327caf623e2756ff506cb3254a2900e51c847c81 100755 (executable)
@@ -101,5 +101,6 @@ assert(abs(dz-0) <= tol)
 import salome_utils
 import killSalomeWithPort
 
-port = salome_utils.getPortNumber()
-killSalomeWithPort.killMyPort(port)
+port = salome_utils.getPortNumber(False)
+if port:
+  killSalomeWithPort.killMyPort(port)
index 7f26b06b2c46836c9126b54b6991ff8bfa5f76a3..fa214c76bd038620329a28633b41d76f92e75309 100755 (executable)
@@ -107,5 +107,6 @@ assert(abs(dz-0) <= tol)
 import salome_utils
 import killSalomeWithPort
 
-port = salome_utils.getPortNumber()
-killSalomeWithPort.killMyPort(port)
+port = salome_utils.getPortNumber(False)
+if port:
+  killSalomeWithPort.killMyPort(port)