daca2: fixed exitcode handling
This commit is contained in:
parent
56a5b0d55f
commit
5d31385161
|
@ -166,8 +166,9 @@ def scanarchive(filepath):
|
||||||
comm = p.communicate()
|
comm = p.communicate()
|
||||||
|
|
||||||
results = open('results.txt', 'at')
|
results = open('results.txt', 'at')
|
||||||
results.write(comm[1])
|
if p.returncode == 0:
|
||||||
if p.returncode != 0:
|
results.write(comm[1])
|
||||||
|
elif comm[0].find('cppcheck: error: could not find or open any of the paths given.') < 0:
|
||||||
results.write('Exit code is not zero! Crash?\n')
|
results.write('Exit code is not zero! Crash?\n')
|
||||||
results.write('\n')
|
results.write('\n')
|
||||||
results.close()
|
results.close()
|
||||||
|
|
Loading…
Reference in New Issue