Revert 568a49c409
and do the changes properly.
This commit is contained in:
parent
c59b9aabab
commit
e6e6335473
|
@ -68,21 +68,30 @@ for package in packages:
|
||||||
subprocess.call(['tar', 'xzvf', filename])
|
subprocess.call(['tar', 'xzvf', filename])
|
||||||
subprocess.call(['rm', filename])
|
subprocess.call(['rm', filename])
|
||||||
|
|
||||||
dirname = None
|
dirname = None
|
||||||
for s in glob.glob(filename[:2] + '*'):
|
for s in glob.glob(filename[:2] + '*'):
|
||||||
if os.path.isdir(s):
|
if os.path.isdir(s):
|
||||||
dirname = s
|
dirname = s
|
||||||
if dirname is None:
|
if dirname is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print('cppcheck "' + dirname + '"')
|
print('cppcheck "' + dirname + '"')
|
||||||
p = subprocess.Popen(['nice', '../cppcheck-O2', '-j2', '-D__GCC__', '--enable=style', '--suppressions-list=../suppressions.txt', dirname], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
p = subprocess.Popen(
|
||||||
comm = p.communicate()
|
['nice',
|
||||||
|
'../cppcheck-O2',
|
||||||
|
'-j2',
|
||||||
|
'-D__GCC__',
|
||||||
|
'--enable=style',
|
||||||
|
'--suppressions-list=../suppressions.txt',
|
||||||
|
dirname],
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.PIPE)
|
||||||
|
comm = p.communicate()
|
||||||
|
|
||||||
results = open('results.txt', 'at')
|
results = open('results.txt', 'at')
|
||||||
results.write(fullpath + '\n')
|
results.write(fullpath + '\n')
|
||||||
results.write(comm[1] + '\n')
|
results.write(comm[1] + '\n')
|
||||||
results.close()
|
results.close()
|
||||||
|
|
||||||
# remove all files/folders except results.txt
|
# remove all files/folders except results.txt
|
||||||
removeAllExceptResults()
|
removeAllExceptResults()
|
||||||
|
|
Loading…
Reference in New Issue