Skip to content

Commit

Permalink
fix spec upload type
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Jul 10, 2024
1 parent 29d7fc6 commit e2c66f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def upload_file(client, projectArn, unique_prefix, filepath, _type):
print(f"Upload of {filename} in state {response['upload']['status']} after " + str(
datetime.datetime.now() - started))
if device_farm_upload_status['upload']['status'] == 'FAILED':
print('File upload status code: ' + str(device_farm_upload_status.status_code) + ' reason: ' + device_farm_upload_status.reason)
print('Upload failed to process')
sys.exit(-1)
time.sleep(1)
Expand Down Expand Up @@ -73,7 +74,7 @@ def main():
unique_prefix = 'CI-' + run_id + '-' + run_attempt
device_farm_app_upload_arn = upload_file(client, project_arn, unique_prefix, app_file_path, 'IOS_APP')
device_farm_test_upload_arn = upload_file(client, project_arn, unique_prefix, test_file_path, 'APPIUM_PYTHON_TEST_PACKAGE')
device_farm_test_spec_upload_arn = upload_file(client, project_arn, unique_prefix, test_spec_file_path, 'APPIUM_PYTHON_TEST_PACKAGE')
device_farm_test_spec_upload_arn = upload_file(client, project_arn, unique_prefix, test_spec_file_path, 'INSTRUMENTATION_TEST_SPEC')

print('scheduling run')
schedule_run_response = client.schedule_run(
Expand Down

0 comments on commit e2c66f1

Please sign in to comment.