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:
Frederik Pfautsch
2025-02-03 21:51:38 +01:00
committed by Jörg Hofrichter
parent f4b6def040
commit 8aefaa7582
+3 -1
View File
@@ -374,9 +374,11 @@ def run_fpga_build(
cmd_build_num,
)
logging.info(f"Running FPGA build command: {cmd}")
my_env = os.environ.copy()
with subprocess.Popen(
cmd,
shell=True,
env=my_env,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
bufsize=1,
@@ -460,7 +462,7 @@ def run_ip_build(
logging.info(f"Running IP build with command: {cmd}")
output = ""
with subprocess.Popen(
f'/bin/bash -c "{cmd}"',
cmd,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,