mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Fix hangup of make check due to problem with SALOME session killing
This commit is contained in:
parent
9b15df25fd
commit
0548026166
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import unittest, sys
|
import unittest, sys, os
|
||||||
|
|
||||||
class SalomeSession(object):
|
class SalomeSession(object):
|
||||||
def __init__(self, script):
|
def __init__(self, script):
|
||||||
@ -10,11 +10,10 @@ class SalomeSession(object):
|
|||||||
sys.argv += ["--modules=GEOM,MED,SMESH"]
|
sys.argv += ["--modules=GEOM,MED,SMESH"]
|
||||||
sys.argv += ["--execute=%s" % script]
|
sys.argv += ["--execute=%s" % script]
|
||||||
clt, d = runSalome.main()
|
clt, d = runSalome.main()
|
||||||
self.port = d['port']
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
port = self.port
|
port = os.getenv('NSPORT')
|
||||||
import killSalomeWithPort
|
import killSalomeWithPort
|
||||||
killSalomeWithPort.killMyPort(port)
|
killSalomeWithPort.killMyPort(port)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user