diff --git a/tools/utils/repeat_fpga_build.py b/tools/utils/repeat_fpga_build.py index 5ededf2..1b03a63 100755 --- a/tools/utils/repeat_fpga_build.py +++ b/tools/utils/repeat_fpga_build.py @@ -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,