forked from M-Labs/artiq
test/ctlmgr: use sys.executable, use default localhost binding
This commit is contained in:
parent
b7de92e96c
commit
ca8a075f46
|
@ -1,4 +1,5 @@
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
import logging
|
import logging
|
||||||
import asyncio
|
import asyncio
|
||||||
|
@ -55,12 +56,13 @@ class ControllerCase(unittest.TestCase):
|
||||||
raise asyncio.TimeoutError
|
raise asyncio.TimeoutError
|
||||||
|
|
||||||
def test_start_ping_stop_controller(self):
|
def test_start_ping_stop_controller(self):
|
||||||
|
command = sys.executable + " -m "
|
||||||
entry = {
|
entry = {
|
||||||
"type": "controller",
|
"type": "controller",
|
||||||
"host": "::1",
|
"host": "::1",
|
||||||
"port": 3253,
|
"port": 3253,
|
||||||
"command": "lda_controller -p {port} --bind {bind} "
|
"command": sys.executable + " -m artiq.frontend.lda_controller "
|
||||||
"--no-localhost-bind --simulation",
|
"-p {port} --simulation"
|
||||||
}
|
}
|
||||||
async def test():
|
async def test():
|
||||||
await self.start("lda_sim", entry)
|
await self.start("lda_sim", entry)
|
||||||
|
|
Loading…
Reference in New Issue