diff --git a/openfpga_flow/scripts/run_fpga_flow.py b/openfpga_flow/scripts/run_fpga_flow.py index 8399ac63c..fcd1d1721 100644 --- a/openfpga_flow/scripts/run_fpga_flow.py +++ b/openfpga_flow/scripts/run_fpga_flow.py @@ -452,6 +452,7 @@ def run_yosys_with_abc(): if process.returncode: logger.info("Yosys failed with returncode %d", process.returncode) + raise subprocess.CalledProcessError(0, command) except: logger.exception("Failed to run yosys") clean_up_and_exit("") @@ -522,6 +523,7 @@ def run_ace2(): if process.returncode: logger.info("ACE2 failed with returncode %d", process.returncode) + raise subprocess.CalledProcessError(0, command) except: logger.exception("Failed to run ACE2") clean_up_and_exit("") @@ -771,6 +773,7 @@ def run_standard_vpr(bench_blif, fixed_chan_width, logfile, route_only=False): if process.returncode: logger.info("Standard VPR run failed with returncode %d", process.returncode) + raise subprocess.CalledProcessError(0, command) except (Exception, subprocess.CalledProcessError) as e: logger.exception("Failed to run VPR") filter_failed_process_output(e.output)