daca2: don't run cppcheck on test code, that is rarelly meant to be valid and proper code

This commit is contained in:
Daniel Marjamäki 2016-02-05 08:34:35 +01:00
parent 07f3930923
commit 1d9537b259
1 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,9 @@ def removeLargeFiles(path):
removeLargeFiles(g + '/')
elif os.path.isfile(g) and g[-4:] != '.txt':
statinfo = os.stat(g)
# Remove test files, the code is not meant to be proper/valid
if path.find('/test/') > 0 or path.find('/testsuite/') > 0:
os.remove(g)
if path.find('/clang/INPUTS/') > 0 or statinfo.st_size > 1000000:
os.remove(g)