Commit 633c9017 authored by melandory's avatar melandory Committed by Commit bot

[Password manager tests] Makes logs which we pass to sheet cleaner.

Instead of logging full exception we log only message.

R=vabr@chromium.org
BUG=435249

Review URL: https://codereview.chromium.org/889453006

Cr-Commit-Position: refs/heads/master@{#313735}
parent 2dad4dfb
...@@ -373,11 +373,10 @@ class Environment: ...@@ -373,11 +373,10 @@ class Environment:
self.ClearCache(True) self.ClearCache(True)
websitetest.SuccessfulLoginTest() websitetest.SuccessfulLoginTest()
self.ClearCache(True) self.ClearCache(True)
except Exception: except Exception as e:
successful = False successful = False
error = traceback.format_exc()
self.tests_results.append(TestResult(websitetest.name, "normal", self.tests_results.append(TestResult(websitetest.name, "normal",
successful, escape(error))) successful, e.message))
def PromptTestList(self, websitetests): def PromptTestList(self, websitetests):
...@@ -397,11 +396,10 @@ class Environment: ...@@ -397,11 +396,10 @@ class Environment:
try: try:
websitetest.was_run = True websitetest.was_run = True
websitetest.PromptTest() websitetest.PromptTest()
except Exception: except Exception as e:
successful = False successful = False
error = traceback.format_exc()
self.tests_results.append(TestResult(websitetest.name, "prompt", self.tests_results.append(TestResult(websitetest.name, "prompt",
successful, escape(error))) successful, e.message))
def Quit(self): def Quit(self):
"""Closes the tests.""" """Closes the tests."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment