From 86e866b82b0ead24b88425757897ea05262c6d3e Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Mon, 5 Sep 2022 19:13:44 +0300 Subject: [PATCH] Allow updating .result files Follows up #23 Fixes #35 --- checkpatch.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/checkpatch.pl b/checkpatch.pl index f985446..836ce5d 100755 --- a/checkpatch.pl +++ b/checkpatch.pl @@ -2825,8 +2825,7 @@ sub process { } if (!$warned_about_test_result_file && - $realfile =~ /^test\/.*\.result$/ && - $line =~ /^\+/) { + $realfile =~ /^test\/.*\.result$/) { $warned_about_test_result_file = 1; ERROR("TEST_RESULT_FILE", "Please avoid tests with .result files\n");