From 0b2ee615162b843355c182056775262acd79f924 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Mon, 11 Sep 2023 10:17:28 +0200 Subject: [PATCH] Kill Salome processes in test Timeout --- test.hdfs/testme.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.2