3 import unittest, sys, os
5 class SalomeSession(object):
6 def __init__(self, script):
8 sys.argv = ["runSalome.py"]
9 sys.argv += ["--terminal"]
10 sys.argv += ["--modules=GEOM"]
11 sys.argv += ["--execute=%s" % script]
12 clt, d = runSalome.main()
16 port = os.getenv('NSPORT')
17 import killSalomeWithPort
18 killSalomeWithPort.killMyPort(port)
22 class MyTest(unittest.TestCase):
23 def testFunction(self):
24 SalomeSession(sys.argv[1])
27 unittest.main(argv=sys.argv[:1])