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

Unified Diff: tko/parsers/version_0.py

Issue 6758040: Add new site parser based off on generate_test_report. (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: Switch to json 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 | « scheduler/site_monitor_db.py ('k') | tko/site_parse » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tko/parsers/version_0.py
diff --git a/tko/parsers/version_0.py b/tko/parsers/version_0.py
index c568e8f6dbc878d25e724652411cd214fcf08424..b6035718f00d5736cb4dfcec18d8ab7437d53cf8 100644
--- a/tko/parsers/version_0.py
+++ b/tko/parsers/version_0.py
@@ -264,12 +264,12 @@ class status_line(object):
# a non-matching part, treat it and the rest of the parts as the reason.
optional_fields = {}
while part_index < len(parts):
- kv = re.search(r"^(\w+)=(.+)", parts[part_index])
- if not kv:
- break
+ kv = re.search(r"^(\w+)=(.+)", parts[part_index])
+ if not kv:
+ break
- optional_fields[kv.group(1)] = kv.group(2)
- part_index += 1
+ optional_fields[kv.group(1)] = kv.group(2)
+ part_index += 1
reason = "\t".join(parts[part_index:])
« no previous file with comments | « scheduler/site_monitor_db.py ('k') | tko/site_parse » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698