]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Kill Salome processes in test Timeout
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Mon, 11 Sep 2023 08:17:28 +0000 (10:17 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Mon, 11 Sep 2023 08:17:28 +0000 (10:17 +0200)
test.hdfs/testme.py

index b12a9484658b07d28223496d96c4532f478aadd9..bdd7089f18a27c6bb6cf75621a52fca662065651 100644 (file)
@@ -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)