| 643 | |
| 644 | |
| 645 | def 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 | |
| 660 | def upload_info(package, info_output): |