This commit is contained in:
@@ -26,15 +26,15 @@ def run_test_ioc():
|
||||
prefix = "TEST:"
|
||||
ioc = TestIOC(prefix=prefix)
|
||||
|
||||
_, run_options = ioc_arg_parser(default_prefix=prefix, desc="Test IOC", args=[])
|
||||
# Corrigé : ne pas passer args=[]
|
||||
_, run_options = ioc_arg_parser(default_prefix=prefix, desc="Test IOC")
|
||||
|
||||
def start_ioc():
|
||||
run(ioc.pvdb, **run_options)
|
||||
|
||||
thread = threading.Thread(target=start_ioc, daemon=True)
|
||||
thread.start()
|
||||
|
||||
time.sleep(2) # Let IOC start
|
||||
time.sleep(1.5) # wait until IOC is ready
|
||||
yield
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user