Skip to content

Commit

Permalink
Updating log checker for geos ats
Browse files Browse the repository at this point in the history
  • Loading branch information
cssherman committed Apr 11, 2024
1 parent 49af05e commit fead5c9
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions geos_ats_package/geos_ats/helpers/log_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,31 @@ def main( fname ):

Nfail = 0
status_fail = [ 'TIMEDOUT', 'HALTED', 'LSFERROR', 'FAILED' ]
overall_status = 'PASSED'
fail_names = []

print( '=======================' )
print( 'Integrated test results' )
print( '=======================' )
for status_code, tests in log[ 'Results' ].items():
N = len( tests )
tmp = tests.split( ';' )
N = len( tmp )
print( f'{status_code}: {N}' )
if status_code in status_fail:
Nfail += Nfail
fail_names.extend( tmp )

if Nfail:
print( '\nOverall status: FAILED' )
else:
print( '\nOverall status: PASSED' )
overall_status = 'FAILED'
print( '=======================' )
print( 'Test failures' )
print( '=======================' )
for name in fail_names:
print( name )

print( '=======================' )
print( f'Overall status: {overall_status}' )
print( '=======================' )


if __name__ == '__main__':
Expand Down

0 comments on commit fead5c9

Please sign in to comment.