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

Unified Diff: scripts/slave/annotation_utils.py

Issue 548773004: Rename process_log_utils and related things. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 6 years, 3 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
Index: scripts/slave/annotation_utils.py
diff --git a/scripts/slave/annotation_utils.py b/scripts/slave/annotation_utils.py
index b87e98806b9110be6493687d4ee197458dabde9d..f454b391ad211cb8619aad2e714b63765bd066bf 100644
--- a/scripts/slave/annotation_utils.py
+++ b/scripts/slave/annotation_utils.py
@@ -11,7 +11,7 @@ TODO(stip): Move the perf dashboard code from runtest.py to here.
import re
-from slave import process_log_utils
+from slave import performance_log_processor
from slave import slave_utils
@@ -46,9 +46,9 @@ def getText(result, observer, name):
failed_test_count = len(observer.FailedTests())
if failed_test_count == 0:
- if result == process_log_utils.SUCCESS:
+ if result == performance_log_processor.SUCCESS:
return basic_info
- elif result == process_log_utils.WARNINGS:
+ elif result == performance_log_processor.WARNINGS:
return basic_info + ['warnings']
if observer.RunningTests():
@@ -82,7 +82,7 @@ def annotate(test_name, result, results_tracker, full_name=False,
# with no output (exit code can have some clues, especially on Windows).
print 'exit code (as seen by runtest.py): %d' % result
- get_text_result = process_log_utils.SUCCESS
+ get_text_result = performance_log_processor.SUCCESS
for failure in sorted(results_tracker.FailedTests()):
if full_name:
@@ -107,18 +107,18 @@ def annotate(test_name, result, results_tracker, full_name=False,
if parser_result > result:
result = parser_result
- if result == process_log_utils.SUCCESS:
+ if result == performance_log_processor.SUCCESS:
if (len(results_tracker.ParsingErrors()) or
len(results_tracker.FailedTests()) or
len(results_tracker.SuppressionHashes())):
print '@@@STEP_WARNINGS@@@'
- get_text_result = process_log_utils.WARNINGS
+ get_text_result = performance_log_processor.WARNINGS
elif result == slave_utils.WARNING_EXIT_CODE:
print '@@@STEP_WARNINGS@@@'
- get_text_result = process_log_utils.WARNINGS
+ get_text_result = performance_log_processor.WARNINGS
else:
print '@@@STEP_FAILURE@@@'
- get_text_result = process_log_utils.FAILURE
+ get_text_result = performance_log_processor.FAILURE
for desc in getText(get_text_result, results_tracker, test_name):
print '@@@STEP_TEXT@%s@@@' % desc
« no previous file with comments | « no previous file | scripts/slave/performance_log_processor.py » ('j') | scripts/slave/unittests/runtest_annotator_test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698