Modified the names of the tests for being displayed friendlier in Sauce Labs
This commit is contained in:
parent
ac4bd22783
commit
c05df985cf
|
@ -24,14 +24,14 @@ tests.run(c)
|
||||||
sauce_client = SauceClient(environ["SAUCE_USERNAME"], environ["SAUCE_ACCESS_KEY"])
|
sauce_client = SauceClient(environ["SAUCE_USERNAME"], environ["SAUCE_ACCESS_KEY"])
|
||||||
for test,error_msg in c.failures+c.errors:
|
for test,error_msg in c.failures+c.errors:
|
||||||
try:
|
try:
|
||||||
sauce_client.jobs.update_job(test.sauce_labs_job_id, passed=False,tags=[environ["TRAVIS_BRANCH"],test.id()],build_num=environ["TRAVIS_JOB_NUMBER"],name=str(environ["TRAVIS_COMMIT"])+"_"+str(test.id().split('.')[1]))
|
sauce_client.jobs.update_job(test.sauce_labs_job_id, passed=False,tags=[environ["TRAVIS_BRANCH"],test.id()],build_num=environ["TRAVIS_JOB_NUMBER"],name=str(environ["TRAVIS_COMMIT"])+"_"+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
|
||||||
|
|
||||||
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(environ["TRAVIS_COMMIT"])+"_"+str(test.id().split('.')[1]))
|
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(environ["TRAVIS_COMMIT"])+"_"+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
|
||||||
|
|
Loading…
Reference in New Issue