From ca8a075f462b11c3da9d10658cd9f49a657b118a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 2 Feb 2016 20:51:44 +0100 Subject: [PATCH] test/ctlmgr: use sys.executable, use default localhost binding --- artiq/test/ctlmgr.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/test/ctlmgr.py b/artiq/test/ctlmgr.py index 61db39f61..de205a677 100644 --- a/artiq/test/ctlmgr.py +++ b/artiq/test/ctlmgr.py @@ -1,4 +1,5 @@ import os +import sys import unittest import logging import asyncio @@ -55,12 +56,13 @@ class ControllerCase(unittest.TestCase): raise asyncio.TimeoutError def test_start_ping_stop_controller(self): + command = sys.executable + " -m " entry = { "type": "controller", "host": "::1", "port": 3253, - "command": "lda_controller -p {port} --bind {bind} " - "--no-localhost-bind --simulation", + "command": sys.executable + " -m artiq.frontend.lda_controller " + "-p {port} --simulation" } async def test(): await self.start("lda_sim", entry)