From 5755a6092e5361fc69d5eeee4a2bd38bc3f088fa Mon Sep 17 00:00:00 2001 From: Jiri Jaburek Date: Wed, 9 Oct 2024 15:41:37 +0200 Subject: [PATCH] make audit-sample-rules report only differences This makes it consistent with other diff-style tests. Signed-off-by: Jiri Jaburek --- static-checks/diff/audit-sample-rules.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/static-checks/diff/audit-sample-rules.py b/static-checks/diff/audit-sample-rules.py index c390945..a53af4c 100755 --- a/static-checks/diff/audit-sample-rules.py +++ b/static-checks/diff/audit-sample-rules.py @@ -115,7 +115,5 @@ def report_diff(*args, ds_contents, sample_contents, filename, **kwargs): 'fail', rule_name, f'{filepath.name} changed', ds_contents=ds_contents, sample_contents=sample_contents, filename=filepath.name, ) - else: - results.report('pass', rule_name, filepath.name) results.report_and_exit()