diff --git a/tools/daca2.py b/tools/daca2.py index 914054d9e..64eff72a8 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -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)