- dir_test = tempfile.mkdtemp(suffix=".yacstest")
- file_test = os.path.join(dir_test,"UnitTestsResult")
- with open(file_test, 'a') as f:
+ import salome
+ import NamingService
+ import os
+ import subprocess
+ salome.salome_init()
+ ior = NamingService.NamingService.IOROfNS()
+ p = subprocess.Popen(["../yacsloader/echoSrv",ior])
+ import time
+ time.sleep(3)
+ with tempfile.TemporaryDirectory(suffix=".yacstest") as dir_test:
+ file_test = os.path.join(dir_test,"UnitTestsResult")
+ with open(file_test, 'a') as f: