Skip to content
Snippets Groups Projects
Commit 546ef301 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

Without this, Zephyr's port "make test" doesn't work.
parent a9e6f08a
Branches
No related tags found
No related merge requests found
...@@ -170,7 +170,7 @@ class ProcessPtyToTerminal: ...@@ -170,7 +170,7 @@ class ProcessPtyToTerminal:
import subprocess import subprocess
import re import re
import serial 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) stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
pty_line = self.subp.stderr.readline().decode("utf-8") pty_line = self.subp.stderr.readline().decode("utf-8")
m = re.search(r"/dev/pts/[0-9]+", pty_line) m = re.search(r"/dev/pts/[0-9]+", pty_line)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment