summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Smith <daniel.smith@qt.io>2020-07-10 10:10:59 +0200
committerDaniel Smith <Daniel.Smith@qt.io>2020-07-10 16:14:46 +0000
commita94d99a147e1c48125ed1a8795f969f44c75df70 (patch)
tree12aa9efedd9da51e3d4ba45d0618354352504a01
parentc068b2ae9bb442f4e0c6fde3210080a53997ec56 (diff)
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 <paul.wicking@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
-rwxr-xr-xgit-hooks/sanitize-commit2
1 files changed, 1 insertions, 1 deletions
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 (<DIFF>) {
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}));