From 916dadb174391235d05232aee1f88c82874aa7f2 Mon Sep 17 00:00:00 2001 From: IlyaMuravjov Date: Tue, 5 Mar 2024 18:28:32 +0300 Subject: [PATCH] Run subprocesses with exit code check --- cli/runners/all_pairs_cflr_tool_runner.py | 1 + cli/runners/gigascale_algo_all_pairs_cflr_tool_runner.py | 1 + 2 files changed, 2 insertions(+) diff --git a/cli/runners/all_pairs_cflr_tool_runner.py b/cli/runners/all_pairs_cflr_tool_runner.py index 53a8a68..b3dd460 100644 --- a/cli/runners/all_pairs_cflr_tool_runner.py +++ b/cli/runners/all_pairs_cflr_tool_runner.py @@ -67,6 +67,7 @@ def run(self) -> CflrToolRunResult: cwd=self.work_dir, stdout=subprocess.PIPE, text=True, + check=True ) return self.safe_parse_results(process) diff --git a/cli/runners/gigascale_algo_all_pairs_cflr_tool_runner.py b/cli/runners/gigascale_algo_all_pairs_cflr_tool_runner.py index d0d01ed..8bc7795 100644 --- a/cli/runners/gigascale_algo_all_pairs_cflr_tool_runner.py +++ b/cli/runners/gigascale_algo_all_pairs_cflr_tool_runner.py @@ -37,6 +37,7 @@ def run(self) -> CflrToolRunResult: cwd=self.work_dir, stdout=subprocess.PIPE, text=True, + check=True, input= f""" set timeout -1