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:
self.ClearCache(True)
websitetest.SuccessfulLoginTest()
self.ClearCache(True)
except Exception:
except Exception as e:
successful = False
error = traceback.format_exc()
self.tests_results.append(TestResult(websitetest.name, "normal",
successful, escape(error)))
successful, e.message))
def PromptTestList(self, websitetests):
......@@ -397,11 +396,10 @@ class Environment:
try:
websitetest.was_run = True
websitetest.PromptTest()
except Exception:
except Exception as e:
successful = False
error = traceback.format_exc()
self.tests_results.append(TestResult(websitetest.name, "prompt",
successful, escape(error)))
successful, e.message))
def Quit(self):
"""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