donate-cpu.py: Save some system / platform information (#1590)

Save some system information which could help debugging the donate-cpu script and Cppcheck.
This commit is contained in:
Sebastian 2019-01-11 20:07:11 +01:00 committed by GitHub
parent c6b48b67f9
commit bae4040060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import socket
import time
import re
import tarfile
import platform
def checkRequirements():
@ -415,6 +416,8 @@ while True:
print('No results')
continue
output = 'cppcheck-options: ' + cppcheck_options + '\n'
output += 'platform: ' + platform.platform() + '\n'
output += 'python: ' + platform.python_version() + '\n'
output += 'cppcheck: ' + ' '.join(cppcheckVersions) + '\n'
output += 'count:' + count + '\n'
output += 'elapsed-time:' + elapsedTime + '\n'