From ca3cced0b4072b507d49b35e0b265da61b686f53 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 18 Feb 2016 10:02:55 +0100 Subject: [PATCH] test/ctlmgr: escape backslashes in sys.executable --- artiq/test/test_ctlmgr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/artiq/test/test_ctlmgr.py b/artiq/test/test_ctlmgr.py index 7f081ca62..5acdcc1f9 100644 --- a/artiq/test/test_ctlmgr.py +++ b/artiq/test/test_ctlmgr.py @@ -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)