From 785623be26faab85f0c8b9f5a98b663b26ddaaa3 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 21 May 2015 16:41:45 +0800 Subject: [PATCH] test/worker: adapt to new scheduler API --- artiq/test/worker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/artiq/test/worker.py b/artiq/test/worker.py index 7c01b8b1c..4fb5e0f9d 100644 --- a/artiq/test/worker.py +++ b/artiq/test/worker.py @@ -30,8 +30,8 @@ class WatchdogTimeoutInBuild(Experiment, AutoDB): @asyncio.coroutine -def _call_worker(worker, run_params): - yield from worker.prepare(0, run_params) +def _call_worker(worker, expid): + yield from worker.prepare(0, "main", expid) try: yield from worker.run() yield from worker.analyze() @@ -40,7 +40,7 @@ def _call_worker(worker, run_params): def _run_experiment(experiment): - run_params = { + expid = { "file": sys.modules[__name__].__file__, "experiment": experiment, "arguments": dict() @@ -51,7 +51,7 @@ def _run_experiment(experiment): worker = Worker(handlers) loop = asyncio.get_event_loop() - loop.run_until_complete(_call_worker(worker, run_params)) + loop.run_until_complete(_call_worker(worker, expid)) class WatchdogCase(unittest.TestCase):