Fixed syntax

(cherry picked from commit 0fe78ffc16f5d1a762acb65dc0e7562f10bc14ed)
This commit is contained in:
axl89 2016-09-06 11:07:28 +02:00
parent 12e4de906c
commit 5c3d4cd26a

View File

@ -31,7 +31,8 @@ for test,error_msg in c.failures+c.errors:
for test,error_msg in c.success+c.skipped: for test,error_msg in c.success+c.skipped:
try: try:
sauce_client.jobs.update_job(test.sauce_labs_job_id, passed=True,tags=[environ["TRAVIS_BRANCH"],test.id()],build_num=environ["TRAVIS_JOB_NUMBER"],name=str(test.id().split('.')[1]+': '+test.id().split('.')[2]) sauce_client.jobs.update_job(test.sauce_labs_job_id, passed=True,tags=[environ["TRAVIS_BRANCH"],test.id()],build_num=environ["TRAVIS_JOB_NUMBER"],name=str(test.id().split('.')[1]+': '+test.id().split('.')[2]))
except: except:
print "Could not annotate Sauce Labs job #%s" % str(test) print "Could not annotate Sauce Labs job #%s" % str(test)
next next