This commit is contained in:
@@ -26,15 +26,15 @@ def run_test_ioc():
|
|||||||
prefix = "TEST:"
|
prefix = "TEST:"
|
||||||
ioc = TestIOC(prefix=prefix)
|
ioc = TestIOC(prefix=prefix)
|
||||||
|
|
||||||
# Solution : éviter que caproto parse les args pytest
|
|
||||||
_, run_options = ioc_arg_parser(default_prefix=prefix, desc="Test IOC", argv=[])
|
|
||||||
|
|
||||||
def start_ioc():
|
def start_ioc():
|
||||||
run(ioc.pvdb, **run_options)
|
# Run the IOC directly, no parsing
|
||||||
|
asyncio.run(run(ioc.pvdb, startup_hook=None))
|
||||||
|
|
||||||
thread = threading.Thread(target=start_ioc, daemon=True)
|
thread = threading.Thread(target=start_ioc, daemon=True)
|
||||||
thread.start()
|
thread.start()
|
||||||
time.sleep(1.5) # wait until IOC is ready
|
|
||||||
|
# Let the IOC boot up
|
||||||
|
time.sleep(1.5)
|
||||||
yield
|
yield
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user