From ba05ad66ea22250d43486a7a78d6d53d6e93b7f4 Mon Sep 17 00:00:00 2001 From: Fernando Andrade - NOAA <121964418+FernandoAndrade-NOAA@users.noreply.github.com> Date: Thu, 31 Aug 2023 12:59:11 -0700 Subject: [PATCH] Update rt-status.py Move changed results indicator to after rap_pe_test check otherwise may have false positive. Show run directory path for checking changed results. --- ci/rt-status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/rt-status.py b/ci/rt-status.py index 77cb5a236..3a1c040f7 100644 --- a/ci/rt-status.py +++ b/ci/rt-status.py @@ -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: @@ -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.')