From 5ef9219e3ce2f92ed0142c7b7bd7049aa227aaf6 Mon Sep 17 00:00:00 2001 From: Axel Date: Mon, 11 Jul 2016 14:30:37 +0200 Subject: [PATCH] Update run_console_tests.py Fixed exception in lines 24 and 31 when the Exception object does not contain a sauce_labs_job_id property --- tests/run_console_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run_console_tests.py b/tests/run_console_tests.py index 13308706b8..c14f55b7f6 100755 --- a/tests/run_console_tests.py +++ b/tests/run_console_tests.py @@ -21,14 +21,14 @@ for test,error_msg in c.failures+c.skipped+c.errors: 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])) except: - print "Could not annotate Sauce Labs job #%s" % str(test.sauce_labs_job_id) + print "Could not annotate Sauce Labs job #%s" % str(test) next for test,error_msg in c.success: 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])) except: - print "Could not annotate Sauce Labs job #%s" % str(test.sauce_labs_job_id) + print "Could not annotate Sauce Labs job #%s" % str(test) next