Skip to content

Commit 64fed5b

Browse files
authored
Merge pull request #63 from szprutamich/master
Version 2.39 compatibility
2 parents 08efb1a + 5a2102e commit 64fed5b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys, os
44

55

6-
version = '2.6.4'
6+
version = '2.39'
77

88
setup(name='testdroid',
99
version=version,

testdroid/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from optparse import OptionParser
66
from datetime import datetime
77

8-
__version__ = '2.6.4'
8+
__version__ = '2.39'
99

1010
FORMAT = "%(message)s"
1111
logging.basicConfig(format=FORMAT)
@@ -568,13 +568,13 @@ def download_test_run(self, project_id, test_run_id):
568568
logger.info("Test run %s: \"%s\" has %s device runs:" % (test_run['id'], test_run['displayName'], len(device_runs['data'])))
569569

570570
for device_run in device_runs['data']:
571-
run_status = device_run['runStatus']
571+
state = device_run['state']
572572
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))
574574

575-
if run_status in ("SUCCEEDED", "FAILED", "EXCLUDED"):
575+
if state in ("ABORTED", "TIMEOUT", "WARNING", "SUCCEEDED", "FAILED", "EXCLUDED"):
576576
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']
578578
files = self.get_device_run_files(project_id, test_run_id, session_id)
579579
for file in files['data']:
580580
if file['state'] == "READY":

0 commit comments

Comments
 (0)