From a94d99a147e1c48125ed1a8795f969f44c75df70 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Fri, 10 Jul 2020 10:10:59 +0200 Subject: Sanity-bot: Add /perfdata/ to the whitelist of test data directories "perfdata" should be an accepted testdata directory name, since it's logical to separate correctness data from performance data in test directories. Fixes: QTQAINFRA-3841 Change-Id: I3b1522a58c94e5b42774ecd8b0a658c2f8936ef4 Reviewed-by: Paul Wicking Reviewed-by: Oswald Buddenhagen --- git-hooks/sanitize-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-hooks') diff --git a/git-hooks/sanitize-commit b/git-hooks/sanitize-commit index 1c4906e..5d97553 100755 --- a/git-hooks/sanitize-commit +++ b/git-hooks/sanitize-commit @@ -752,7 +752,7 @@ while () { if ($file =~ /(~|\.(old|bak))$/i) { complain("Adding backup file", "backup") if ($new_file && !defined($cfg{backup})); $ws_check = 0; - } elsif ($file =~ m,^tests/.*/(test)?data/,) { + } elsif ($file =~ m,^tests/.*/(perf|test)?data/,) { $ws_check = $eof_check = $apple_check = $no_copyright = 0; } elsif ($file =~ /\.(prl|la|pc|ilk)$/i) { complain("Adding build artifact", "generated") if ($new_file && !defined($cfg{generated})); -- cgit v1.2.1