From: Christophe Bourcier Date: Mon, 11 Sep 2023 08:17:28 +0000 (+0200) Subject: Kill Salome processes in test Timeout X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0b2ee615162b843355c182056775262acd79f924;p=modules%2Fshaper.git Kill Salome processes in test Timeout --- diff --git a/test.hdfs/testme.py b/test.hdfs/testme.py index b12a94846..bdd7089f1 100644 --- a/test.hdfs/testme.py +++ b/test.hdfs/testme.py @@ -49,7 +49,10 @@ if __name__ == '__main__': proc.communicate(timeout = testTimeout) except subprocess.TimeoutExpired: isOk = False - proc.kill() + import salome_utils + port = salome_utils.getPortNumber() + import killSalomeWithPort + killSalomeWithPort.killMyPort(port) error = "Killed by CPU limit." assert isOk, "Test failed. {}".format(error)