From c40e16424899d868a071d18aad0f992ecfc37e01 Mon Sep 17 00:00:00 2001 From: Chuck SmileyRekiere Date: Tue, 30 Nov 2021 18:54:02 -0500 Subject: [PATCH] lf_check.py : added summary to summary some tests failed ct_us_001_scripts.json : added information about --create_scenario and instance name Signed-off-by: Chuck SmileyRekiere --- py-scripts/tools/ct_us_001_scripts.json | 5 ++++- py-scripts/tools/lf_check.py | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/py-scripts/tools/ct_us_001_scripts.json b/py-scripts/tools/ct_us_001_scripts.json index 9627d0b6..9273fff6 100755 --- a/py-scripts/tools/ct_us_001_scripts.json +++ b/py-scripts/tools/ct_us_001_scripts.json @@ -6,7 +6,10 @@ "The variables that are all capitalized below are replaced with configuration", "from the json file. so LF_MGR_IP in the test below is replaced by the json lf_mgr_ip", "The replacement is loosely coupled so the upper and lower case convention is used", - "to identify replaced strings in the lf_check.py code." + "to identify replaced strings in the lf_check.py code.", + "When doing a create_chamberview.py --create_scenario ", + "has no correlation to the --instance_name , instance name is used ", + "as a unique identifier for tha chamber-view test run" ] }, "test_suites":{ diff --git a/py-scripts/tools/lf_check.py b/py-scripts/tools/lf_check.py index 5dbc6d85..e755810e 100755 --- a/py-scripts/tools/lf_check.py +++ b/py-scripts/tools/lf_check.py @@ -159,6 +159,7 @@ class lf_check(): self.tests_run = 0 self.tests_success = 0 self.tests_failure = 0 + self.tests_some_failure = 0 self.tests_timeout = 0 self.results_col_titles = [ "Test", "Command", "Result", "STDOUT", "STDERR"] @@ -1067,6 +1068,8 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url) self.tests_success += 1 elif self.test_result == "Failure": self.tests_failure += 1 + elif self.test_result == "Some Tests Failed": + self.tests_some_failure += 1 elif self.test_result == "TIMEOUT": self.tests_timeout += 1 @@ -1422,6 +1425,7 @@ note if all json data (rig,dut,tests) in same json file pass same json in for a lf_test_summary = pd.DataFrame() lf_test_summary['Tests Run'] = [check.tests_run] lf_test_summary['Success'] = [check.tests_success] + lf_test_summary['Some Tests Failed'] = [check.tests_some_failure] lf_test_summary['Failure'] = [check.tests_failure] lf_test_summary['Timeout'] = [check.tests_timeout]