From b6c30c36393e0981436cd80e55a649baeb9862b4 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 2 Jan 2026 22:23:28 +0100 Subject: [PATCH] Print a useful message when the file is out of date Don't print the differences: interested users can just run `git diff` (or save the old file and run `comm`). Signed-off-by: Gilles Peskine --- tests/scripts/check_option_lists.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/scripts/check_option_lists.py b/tests/scripts/check_option_lists.py index dcf5c3a74d..7ce55c1da9 100755 --- a/tests/scripts/check_option_lists.py +++ b/tests/scripts/check_option_lists.py @@ -35,7 +35,11 @@ def main(): data.update_shadow_file(args.always_update) else: up_to_date = True - up_to_date &= data.compare_shadow_file_verbosely() + if not data.is_shadow_file_up_to_date(): + print(f'{data.shadow_file_path()} is out of date') + print(f'After adding or removing a conifg option, you need to run') + print(f'{sys.argv[0]} and commit the result.') + up_to_date = False sys.exit(0 if up_to_date else 1) if __name__ == "__main__":