Get rid of unnecessary bash wrappers in subprocesses.Popen
Signed-off-by: Frederik Pfautsch <frederik.pfautsch@missinglinkelectronics.com> Original-commit: e572bab3ee5aa40f57bdc6e11d6381cad1d1401a
This commit is contained in:
committed by
Jörg Hofrichter
parent
f4b6def040
commit
8aefaa7582
@@ -374,9 +374,11 @@ def run_fpga_build(
|
|||||||
cmd_build_num,
|
cmd_build_num,
|
||||||
)
|
)
|
||||||
logging.info(f"Running FPGA build command: {cmd}")
|
logging.info(f"Running FPGA build command: {cmd}")
|
||||||
|
my_env = os.environ.copy()
|
||||||
with subprocess.Popen(
|
with subprocess.Popen(
|
||||||
cmd,
|
cmd,
|
||||||
shell=True,
|
shell=True,
|
||||||
|
env=my_env,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
bufsize=1,
|
bufsize=1,
|
||||||
@@ -460,7 +462,7 @@ def run_ip_build(
|
|||||||
logging.info(f"Running IP build with command: {cmd}")
|
logging.info(f"Running IP build with command: {cmd}")
|
||||||
output = ""
|
output = ""
|
||||||
with subprocess.Popen(
|
with subprocess.Popen(
|
||||||
f'/bin/bash -c "{cmd}"',
|
cmd,
|
||||||
shell=True,
|
shell=True,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.STDOUT,
|
stderr=subprocess.STDOUT,
|
||||||
|
|||||||
Reference in New Issue
Block a user