donate-cpu.py: Fix too few return values in scanPackage()
In case a crash is detected the scanPackage() function returns too few values (three instead of four). This likely leads to an exception then.
This commit is contained in:
parent
cdae767bd8
commit
be14517bcd
|
@ -237,11 +237,11 @@ def scanPackage(workPath, cppcheck, jobs):
|
|||
if p.returncode != 0 and 'cppcheck: error: could not find or open any of the paths given.' not in stdout:
|
||||
# Crash!
|
||||
print('Crash!')
|
||||
return -1, '', -1
|
||||
return -1, '', -1, options
|
||||
if stderr.find('Internal error: Child process crashed with signal 11 [cppcheckError]') > 0:
|
||||
# Crash!
|
||||
print('Crash!')
|
||||
return -1, '', -1
|
||||
return -1, '', -1, options
|
||||
elapsedTime = stopTime - startTime
|
||||
count = 0
|
||||
for line in stderr.split('\n'):
|
||||
|
|
Loading…
Reference in New Issue