From b1ca68ed3948215784f1265fea057356c2428ac5 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Wed, 30 Mar 2022 11:54:52 -0600 Subject: [PATCH] lf_check.py : corrected return code logic Signed-off-by: Chuck SmileyRekiere --- py-scripts/tools/lf_check.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index a8394b2d..84397911 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -1106,15 +1106,15 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite""" "TIMEOUT FAILURE, Check LANforge Radios") self.test_result = "Time Out" background = self.background_purple - elif return_code == '1': + elif return_code == 1: self.logger.error("Test returne fail return code {return_code} for test: {command}".format(return_code=return_code,command=command_to_run)) self.test_result = "Script retured Fail" background = self.background_red - elif return_code == '2': + elif return_code == 2: self.logger.error("Incorrect args: return code {return_code} for test: {command}".format(return_code=return_code,command=command_to_run)) self.test_result = "Incorrect args" background = self.background_orange - elif return_code != '0': + elif return_code != 0: self.logger.error("None zero return code: return code {return_code} for test: {command}".format(return_code=return_code,command=command_to_run)) self.test_result = "return code {return_code}".format(return_code=return_code) background = self.background_orange