From 81873a4835e8d2649b9ca3024808593127d98d7b Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 14 Feb 2013 07:00:53 +0000 Subject: [PATCH] Fix hangup of make check due to problem with SALOME session killing --- doc/salome/examples/testme.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/salome/examples/testme.py b/doc/salome/examples/testme.py index d8a98200d..f6c5e7837 100755 --- a/doc/salome/examples/testme.py +++ b/doc/salome/examples/testme.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import unittest, sys +import unittest, sys, os class SalomeSession(object): def __init__(self, script): @@ -10,11 +10,10 @@ class SalomeSession(object): sys.argv += ["--modules=GEOM"] sys.argv += ["--execute=%s" % script] clt, d = runSalome.main() - self.port = d['port'] return def __del__(self): - port = self.port + port = os.getenv('NSPORT') import killSalomeWithPort killSalomeWithPort.killMyPort(port) return -- 2.39.2