From a7856d017d17b6dd4e2117c5f2c517ec7dfa2f04 Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wouter.deconinck@umanitoba.ca>
Date: Sat, 9 Oct 2021 15:35:55 +0000
Subject: [PATCH] Undefined opt when rec fails

---
 benchmarks/tracking/run_tracking_benchmarks.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/benchmarks/tracking/run_tracking_benchmarks.py b/benchmarks/tracking/run_tracking_benchmarks.py
index f474dada..32a8a149 100755
--- a/benchmarks/tracking/run_tracking_benchmarks.py
+++ b/benchmarks/tracking/run_tracking_benchmarks.py
@@ -83,7 +83,7 @@ if 'rec' in procs:
     rec_cmd = ['gaudirun.py', os.path.join(sdir, 'options', option_script)]
     return_code = subprocess.run(rec_cmd).returncode
     if return_code is not None and return_code != 0:
-        print('ERROR running juggler ({})!'.format(opt))
+        print('ERROR running juggler ({})!'.format(rec_cmd))
         exit(1)
     process = subprocess.run(['rootls', '-t', rec_file])
 
@@ -96,7 +96,7 @@ if 'ana' in procs:
                '-o', 'results', '-t', args.nametag]
     return_code = subprocess.run(ana_cmd).returncode
     if return_code is not None and return_code != 0:
-        print('ERROR running analysis ({})!'.format(ana))
+        print('ERROR running analysis ({})!'.format(ana_cmd))
         exit(1)
 
 
-- 
GitLab