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

Unified Diff: generate_test_report.py

Issue 6639001: Only print out ERROR log rather than DEBUG log as DEBUG is overly verbose. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Created 9 years, 9 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: generate_test_report.py
diff --git a/generate_test_report.py b/generate_test_report.py
index ed64fc1974ecb129c0818e34e4a399bfce97ddab..cb5ca436a75b27e8545505f12ed3dbe3ace436db 100755
--- a/generate_test_report.py
+++ b/generate_test_report.py
@@ -252,23 +252,23 @@ class ReportGenerator(object):
print self._color.Color(Color.GREEN,
'No crashes detected during testing.')
- # Print out the client debug information for failed tests.
+ # Print out error log for failed tests.
if self._options.print_debug:
for test in tests_with_errors:
debug_file_regex = os.path.join(self._options.strip, test, 'debug',
- '%s*.DEBUG' % os.path.basename(test))
+ '%s*.ERROR' % os.path.basename(test))
for path in glob.glob(debug_file_regex):
try:
fh = open(path)
print >> sys.stderr, (
- '\n========== DEBUG FILE %s FOR TEST %s ==============\n' % (
+ '\n========== ERROR FILE %s FOR TEST %s ==============\n' % (
path, test))
out = fh.read()
while out:
print >> sys.stderr, out
out = fh.read()
print >> sys.stderr, (
- '\n=========== END DEBUG %s FOR TEST %s ===============\n' % (
+ '\n=========== END ERROR FILE %s FOR TEST %s ===========\n' % (
path, test))
fh.close()
except:
@@ -312,7 +312,7 @@ def main():
help='Don\'t strip a prefix from test directory names')
parser.add_option('--no-debug', dest='print_debug', action='store_false',
default=True,
- help='Don\'t print out the debug log when a test fails.')
+ help='Don\'t print out logs when tests fail.')
(options, args) = parser.parse_args()
if not args:
« 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