From: vsr Date: Thu, 14 Feb 2013 07:00:36 +0000 (+0000) Subject: Fix hangup of make check due to problem with SALOME session killing X-Git-Tag: pluginMGCleaner~128 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0548026166c6b97ddf9b9419815f9902fc4e3a0d;p=modules%2Fsmesh.git Fix hangup of make check due to problem with SALOME session killing --- diff --git a/doc/salome/examples/testme.py b/doc/salome/examples/testme.py index b1328b596..c870ab656 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,MED,SMESH"] 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