MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / upload_results

Function upload_results

tools/donate_cpu_lib.py:645–657  ·  view source on GitHub ↗
(package, results)

Source from the content-addressed store, hash-verified

643
644
645def upload_results(package, results):
646 if not __make_cmd == 'make':
647 print('Error: Result upload not performed - only make build binaries are currently fully supported')
648 return False
649
650 print('Uploading results.. ' + str(len(results)) + ' bytes')
651 try:
652 try_retry(__upload, fargs=('write\n' + package, results + '\nDONE', 'Result'), max_tries=20, sleep_duration=15, sleep_factor=1)
653 except Exception as e:
654 print('Result upload failed ({})!'.format(e))
655 return False
656
657 return True
658
659
660def upload_info(package, info_output):

Callers

nothing calls this directly

Calls 3

strFunction · 0.85
try_retryFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected