]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix hangup of make check due to problem with SALOME session killing
authorvsr <vsr@opencascade.com>
Thu, 14 Feb 2013 07:00:53 +0000 (07:00 +0000)
committervsr <vsr@opencascade.com>
Thu, 14 Feb 2013 07:00:53 +0000 (07:00 +0000)
doc/salome/examples/testme.py

index d8a98200d142ca76cfce6ce3a6bf7c1ec219d4a9..f6c5e783713e56f29fed1807bfdab20832750d0d 100755 (executable)
@@ -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