Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: components/test/data/password_manager/automated_tests/environment.py

Issue 889453006: [Password manager tests] Makes logs which we pass to sheet cleaner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test/data/password_manager/automated_tests/environment.py
diff --git a/components/test/data/password_manager/automated_tests/environment.py b/components/test/data/password_manager/automated_tests/environment.py
index f49efbd45555bbbb6ee63bc3ad18fa5b0caa869d..a8b5f9d03321a2d998dac41c2d1366da7c0c2fee 100644
--- a/components/test/data/password_manager/automated_tests/environment.py
+++ b/components/test/data/password_manager/automated_tests/environment.py
@@ -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."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698