From 1ea61f07eedbec43e473c00c1f3dd6388665f72b Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Tue, 5 Oct 2021 07:03:47 -0600 Subject: [PATCH] lf_check.py : exit if there are exceptions reading the radio data. No radio data indicates that the LANforge GUI may not be running Signed-off-by: Chuck SmileyRekiere --- py-scripts/tools/lf_check.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index cfdc8b3c..cbbc4421 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -141,6 +141,7 @@ class lf_check(): self.production_run = _production self.report_path = _report_path self.log_path = _log_path + self.ssid_dict = {} self.radio_dict = {} self.test_dict = {} path_parent = os.path.dirname(os.getcwd()) @@ -1279,7 +1280,8 @@ note if all json data (rig,dut,tests) in same json file pass same json in for a print("print_exc(): {error}".format(error=error)) traceback.print_exc(file=sys.stdout) lf_radio_df = pd.DataFrame() - print("get_lanforge_radio_json exception, no radio data") + print("get_lanforge_radio_json exception, no radio data, check for LANforge GUI running") + exit(1) # LANforge and scripts config for results lf_test_setup = pd.DataFrame()