Skip to content

Commit

Permalink
webui: travis selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Nov 28, 2018
1 parent 31f6b01 commit 17fbdd1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions webui/tests/selenium/webui-selenium-test.py
Expand Up @@ -440,11 +440,10 @@ def tearDown(self):
if self.travis:
print("Link to test {}: https://app.saucelabs.com/jobs/%s".format(self.id(), self.driver.session_id))
sauce_client = SauceClient(self.sauce_username, self.access_key)
try:
if sys.exc_info() == (None, None, None):
sauce_client.jobs.update_job(self.driver.session_id, passed=True)
else:
sauce_client.jobs.update_job(self.driver.session_id, passed=False)
if sys.exc_info() == (None, None, None):
sauce_client.jobs.update_job(self.driver.session_id, passed=True)
else:
sauce_client.jobs.update_job(self.driver.session_id, passed=False)
self.driver.quit()
self.assertEqual([], self.verificationErrors)

Expand Down

0 comments on commit 17fbdd1

Please sign in to comment.