From 546ef301a12ccd6015137964637983432c64d11f Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 5 Apr 2017 00:44:59 +0300 Subject: [PATCH] tools/pyboard: execpty: Use shell=False to workaround some curdir issues. Without this, Zephyr's port "make test" doesn't work. --- tools/pyboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pyboard.py b/tools/pyboard.py index 131634c906..b7babdc305 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -170,7 +170,7 @@ class ProcessPtyToTerminal: import subprocess import re import serial - self.subp = subprocess.Popen(cmd.split(), bufsize=0, shell=True, preexec_fn=os.setsid, + self.subp = subprocess.Popen(cmd.split(), bufsize=0, shell=False, preexec_fn=os.setsid, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) pty_line = self.subp.stderr.readline().decode("utf-8") m = re.search(r"/dev/pts/[0-9]+", pty_line)