|
5 | 5 | from optparse import OptionParser |
6 | 6 | from datetime import datetime |
7 | 7 |
|
8 | | -__version__ = '2.6.4' |
| 8 | +__version__ = '2.39' |
9 | 9 |
|
10 | 10 | FORMAT = "%(message)s" |
11 | 11 | logging.basicConfig(format=FORMAT) |
@@ -568,13 +568,13 @@ def download_test_run(self, project_id, test_run_id): |
568 | 568 | logger.info("Test run %s: \"%s\" has %s device runs:" % (test_run['id'], test_run['displayName'], len(device_runs['data']))) |
569 | 569 |
|
570 | 570 | for device_run in device_runs['data']: |
571 | | - run_status = device_run['runStatus'] |
| 571 | + state = device_run['state'] |
572 | 572 | logger.info("") |
573 | | - logger.info("%s \"%s\" %s" % (device_run['id'], device_run['device']['displayName'], run_status)) |
| 573 | + logger.info("%s \"%s\" %s" % (device_run['id'], device_run['device']['displayName'], state)) |
574 | 574 |
|
575 | | - if run_status in ("SUCCEEDED", "FAILED", "EXCLUDED"): |
| 575 | + if state in ("ABORTED", "TIMEOUT", "WARNING", "SUCCEEDED", "FAILED", "EXCLUDED"): |
576 | 576 | directory = "%s-%s/%d-%s" % (test_run_id, test_run['displayName'], device_run['id'], device_run['device']['displayName']) |
577 | | - session_id = device_run['deviceSessionId'] |
| 577 | + session_id = device_run['id'] |
578 | 578 | files = self.get_device_run_files(project_id, test_run_id, session_id) |
579 | 579 | for file in files['data']: |
580 | 580 | if file['state'] == "READY": |
|
0 commit comments