From eaba5192c45aa333ab45216ce1773d75d539e9b3 Mon Sep 17 00:00:00 2001
From: Mohamed Gaber <donn@efabless.com>
Date: Tue, 2 Apr 2024 00:07:21 +0200
Subject: [PATCH] Fix Exit Code Propagation When Creating Reproducibles (#2111)

~ Fixed exit codes not being propagated for tools that get automatic reproducible creation
---
 scripts/utils/utils.tcl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/utils/utils.tcl b/scripts/utils/utils.tcl
index e2a0087a..a583a274 100755
--- a/scripts/utils/utils.tcl
+++ b/scripts/utils/utils.tcl
@@ -690,6 +690,7 @@ proc run_tcl_script {args} {
 
         catch_exec {*}$args
         if { $exec_result(exit_code) } {
+            set exit_code $exec_result(exit_code)
             set print_error_msg "during executing $tool script $script"
             set log_relpath [relpath $::env(PWD) $arg_values(-indexed_log)]
 
-- 
GitLab