Skip to content

Commit e272118

Browse files
author
Power Cloud Robot
authored
Merge pull request #47 from SurajGudaji/minor_changes
Added symcount variable to get count of failed testcases
2 parents 1a1868d + 5a16dc7 commit e272118

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

config.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ selected_ci = __CI__
44
before_date = __BDATE__
55
after_date = __ADATE__
66
query_option = __QP__
7-
tc_name =
7+
tc_name = __TC__

monitor.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,10 +828,12 @@ def print_all_failed_tc(spylink,jobtype):
828828
tc_failures, fail_count, error_object = get_all_failed_tc(spylink,jobtype)
829829
if 0 < fail_count <= 5:
830830
for key,value in tc_failures.items():
831+
i = 1
831832
if len(value) > 0:
832-
print(key,'testcase failures')
833+
print('Failed',key,'testcases: ')
833834
for tc in value:
834-
print(tc)
835+
print(str(i)+'.',tc)
836+
i=i+1
835837
elif len(value) == 0:
836838
print('All',key,'testcases passed')
837839
elif fail_count > 5:
@@ -862,6 +864,7 @@ def print_all_failed_tc(spylink,jobtype):
862864
elif test_exe_status == "ABORTED":
863865
sym,sym_error_object = get_junit_symptom_detection_testcase_failures(spylink,jobtype)
864866
if not sym_error_object:
867+
symcount = len(sym)
865868
if symcount > 0:
866869
print("Symptom Detection Test failures:")
867870
for i in sym:

0 commit comments

Comments
 (0)