mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-04 12:48:00 +00:00
lf_check.py : changed check for --help file check to ERROR FAILED check
and put some tests failed. Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
committed by
shivam
parent
6585cf0531
commit
afcdc46c5e
@@ -447,10 +447,10 @@ NOTE: Diagrams are links in dashboard""".format(ip_qa=ip, qa_url=qa_url)
|
||||
QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
|
||||
|
||||
if (self.email_title_txt != ""):
|
||||
mail_subject = "{email} [{hostname}] {suite} {date}".format(email=self.email_title_txt, hostname=self.hostname,
|
||||
mail_subject = "{email} [{hostname}] {suite} {db} {date}".format(email=self.email_title_txt, hostname=self.hostname,
|
||||
suite=self.test_suite, db=self.database_sqlite, date=datetime.datetime.now())
|
||||
else:
|
||||
mail_subject = "Regression Test [{hostname}] {suite} {date}".format(hostname=self.hostname,
|
||||
mail_subject = "Regression Test [{hostname}] {suite} {db} {date}".format(hostname=self.hostname,
|
||||
suite=self.test_suite, db=self.database_sqlite, date=datetime.datetime.now())
|
||||
try:
|
||||
if self.production_run:
|
||||
@@ -1065,6 +1065,9 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
|
||||
background = self.background_green
|
||||
# leave the space in after error to not pick up tx
|
||||
# errors or rx errors
|
||||
elif 'ERROR FAILED ' in text:
|
||||
self.test_result = "Some Tests Failed"
|
||||
background = self.background_orange
|
||||
elif 'error ' in text.lower():
|
||||
self.test_result = "Test Errors"
|
||||
background = self.background_red
|
||||
@@ -1095,6 +1098,8 @@ QA Report Dashboard: lf_qa.py was not run as last script of test suite"""
|
||||
self.tests_failure += 1
|
||||
elif self.test_result == "Some Tests Failed":
|
||||
self.tests_some_failure += 1
|
||||
elif self.test_result == "Test Errors":
|
||||
self.tests_failure += 1
|
||||
elif self.test_result == "TIMEOUT":
|
||||
self.tests_timeout += 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user