test/ctlmgr: escape backslashes in sys.executable

This commit is contained in:
Sebastien Bourdeauducq 2016-02-18 10:02:55 +01:00
parent 4940e48d85
commit ca3cced0b4
1 changed files with 3 additions and 2 deletions

View File

@ -60,8 +60,9 @@ class ControllerCase(unittest.TestCase):
"type": "controller",
"host": "::1",
"port": 3253,
"command": sys.executable + " -m artiq.frontend.lda_controller "
"-p {port} --simulation"
"command": (sys.executable.replace("\\", "\\\\")
+ " -m artiq.frontend.lda_controller "
+ "-p {port} --simulation")
}
async def test():
await self.start("lda_sim", entry)