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

Unified Diff: au_test_harness/au_test.py

Issue 6857004: Clean up extreme verbosity of logs in test harness. (Closed) Base URL: http://git.chromium.org/git/crostestutils.git@master
Patch Set: Last patch Created 9 years, 8 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 | au_test_harness/au_worker.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: au_test_harness/au_test.py
diff --git a/au_test_harness/au_test.py b/au_test_harness/au_test.py
index a95fa746d799996cdd863a10669ea9c0b57fc16a..8b1df085c5bb85753a563e9dfdfbb3fa6dd174db 100644
--- a/au_test_harness/au_test.py
+++ b/au_test_harness/au_test.py
@@ -81,11 +81,11 @@ class AUTest(unittest.TestCase):
self.worker.UpdateUsingPayload(payload)
except UpdateException as err:
# Will raise ValueError if expected is not found.
- if re.search(re.escape(expected_msg), err.stdout, re.MULTILINE):
+ if re.search(re.escape(expected_msg), err.output, re.MULTILINE):
return
else:
cros_lib.Warning("Didn't find '%s' in:" % expected_msg)
- cros_lib.Warning(err.stdout)
+ cros_lib.Warning(err.output)
self.fail('We managed to update when failure was expected')
@@ -114,7 +114,7 @@ class AUTest(unittest.TestCase):
Sets instance specific variables and initializes worker.
"""
- unittest.TestCase.setUp(self)
+ super(AUTest, self).setUp()
self.worker = self.worker_class(self.options, AUTest.test_results_root)
self.download_folder = os.path.join(os.path.realpath(os.path.curdir),
'latest_download')
« no previous file with comments | « no previous file | au_test_harness/au_worker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698