tools/pyboard: execpty: Use shell=False to workaround some curdir issues.

Without this, Zephyr's port "make test" doesn't work.
This commit is contained in:
Paul Sokolovsky 2017-04-05 00:44:59 +03:00
parent a9e6f08adb
commit 546ef301a1

View File

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