Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys, os


version = '2.6.4'
version = '2.39'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO this doesn't make sense. If you keep following Testdroid version what if you need to do bug fix to api client during one version. is going to be 2.39.1 (at least the orig version should be then 2.39.0) other thing what if there is no update to client does it jump from 2.39 to 2.58 for example?


setup(name='testdroid',
version=version,
Expand Down
10 changes: 5 additions & 5 deletions testdroid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from optparse import OptionParser
from datetime import datetime

__version__ = '2.6.4'
__version__ = '2.39'

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

for device_run in device_runs['data']:
run_status = device_run['runStatus']
state = device_run['state']
logger.info("")
logger.info("%s \"%s\" %s" % (device_run['id'], device_run['device']['displayName'], run_status))
logger.info("%s \"%s\" %s" % (device_run['id'], device_run['device']['displayName'], state))

if run_status in ("SUCCEEDED", "FAILED", "EXCLUDED"):
if state in ("ABORTED", "TIMEOUT", "WARNING", "SUCCEEDED", "FAILED", "EXCLUDED"):
directory = "%s-%s/%d-%s" % (test_run_id, test_run['displayName'], device_run['id'], device_run['device']['displayName'])
session_id = device_run['deviceSessionId']
session_id = device_run['id']
files = self.get_device_run_files(project_id, test_run_id, session_id)
for file in files['data']:
if file['state'] == "READY":
Expand Down