Skip to content

Commit 546ef30

Browse files
committed
tools/pyboard: execpty: Use shell=False to workaround some curdir issues.
Without this, Zephyr's port "make test" doesn't work.
1 parent a9e6f08 commit 546ef30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/pyboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def __init__(self, cmd):
170170
import subprocess
171171
import re
172172
import serial
173-
self.subp = subprocess.Popen(cmd.split(), bufsize=0, shell=True, preexec_fn=os.setsid,
173+
self.subp = subprocess.Popen(cmd.split(), bufsize=0, shell=False, preexec_fn=os.setsid,
174174
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
175175
pty_line = self.subp.stderr.readline().decode("utf-8")
176176
m = re.search(r"/dev/pts/[0-9]+", pty_line)

0 commit comments

Comments
 (0)