forked from M-Labs/artiq
1
0
Fork 0

test/ctlmgr: use sys.executable, use default localhost binding

This commit is contained in:
Sebastien Bourdeauducq 2016-02-02 20:51:44 +01:00
parent b7de92e96c
commit ca8a075f46
1 changed files with 4 additions and 2 deletions

View File

@ -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)