daca2: don't run cppcheck on test code, that is rarelly meant to be valid and proper code
This commit is contained in:
parent
07f3930923
commit
1d9537b259
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue