Skip to content

Commit

Permalink
Update rt-status.py
Browse files Browse the repository at this point in the history
Move changed results indicator to after rap_pe_test check otherwise may have false positive. Show run directory path for checking changed results.
  • Loading branch information
FernandoAndrade-NOAA authored Aug 31, 2023
1 parent cc40228 commit ba05ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/rt-status.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def check_for_diff(tests):
for case_dir in os.listdir('./rundir'):
for file in os.listdir('./rundir/{}'.format(case_dir)):
if file.endswith('.diff'):
changed = True
diff_case = ''
for test in tests:
if test in case_dir:
Expand All @@ -43,8 +42,9 @@ def check_for_diff(tests):
print('There are changes in results for case {}_pe_test in {}'.format(diff_case, file.replace(".diff", "")))
else:
print('There are changes in results for case {} in {}'.format(diff_case, file.replace(".diff", "")))
changed = True
if changed:
print('Refer to .diff files in rundir for details on differences for each case.')
print('Refer to .diff files in rundir: {}/rundir for details on differences in results for each case.'.format(os.getcwd()))
else:
print('No changes in test results detected.')

Expand Down

0 comments on commit ba05ad6

Please sign in to comment.