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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Python client for Testdroid Cloud APIv2
Dependencies
-----

For Linux installatin you need Python dev package.
For Linux installation you need Python dev package.

Ubuntu
`sudo apt-get install python-dev`
Expand Down
6 changes: 5 additions & 1 deletion testdroid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,12 @@ def start_test_run(self, project_id, device_group_id=None, device_model_ids=None
if not 'id' in device_group:
print "Device group %s not found" % device_group_id
sys.exit(1)
# Update device group

if int(device_group['deviceCount']) == 0:
print "ERROR: No devices at device group %s" % device_group['id']
sys.exit(1)

# Update device group
reply = self.set_project_config(project_id=project_id, payload={'usedDeviceGroupId': device_group_id})
if int(reply['usedDeviceGroupId']) != int(device_group_id):
print "Unable to set used device group to %s for project %s" % (device_group_id, project_id)
Expand Down