diff options
author | Daniel Smith <daniel.smith@qt.io> | 2020-07-10 10:10:59 +0200 |
---|---|---|
committer | Daniel Smith <Daniel.Smith@qt.io> | 2020-07-10 16:14:46 +0000 |
commit | a94d99a147e1c48125ed1a8795f969f44c75df70 (patch) | |
tree | 12aa9efedd9da51e3d4ba45d0618354352504a01 /git-hooks | |
parent | c068b2ae9bb442f4e0c6fde3210080a53997ec56 (diff) | |
download | qtrepotools-a94d99a147e1c48125ed1a8795f969f44c75df70.tar.gz |
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>
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/sanitize-commit | 2 |
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})); |