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

Unified Diff: tko/parsers/version_1.py

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 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
« no previous file with comments | « server/server_job.py ('k') | utils/external_packages.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tko/parsers/version_1.py
diff --git a/tko/parsers/version_1.py b/tko/parsers/version_1.py
index e231fd1b816b2c2681d9333a595957839287575f..111f7efaf6ade54bcbb98bf648c838be939bf96c 100644
--- a/tko/parsers/version_1.py
+++ b/tko/parsers/version_1.py
@@ -285,9 +285,14 @@ class parser(base.parser):
subdir_stack.append(line.subdir)
continue
elif line.type == "INFO":
+ fields = line.optional_fields
# update the current kernel if one is defined in the info
- if "kernel" in line.optional_fields:
+ if "kernel" in fields:
current_kernel = line.get_kernel()
+ # update the SERVER_JOB reason if one was logged for an abort
+ if "job_abort_reason" in fields:
+ running_job.reason = fields["job_abort_reason"]
+ new_tests.append(running_job)
continue
elif line.type == "STATUS":
# update the stacks
@@ -385,7 +390,7 @@ class parser(base.parser):
# the job is finished, produce the final SERVER_JOB entry and exit
final_job = test.parse_test(self.job, "----", "SERVER_JOB",
- self.job.exit_status(), "",
+ self.job.exit_status(), running_job.reason,
current_kernel,
self.job.started_time,
self.job.finished_time,
« no previous file with comments | « server/server_job.py ('k') | utils/external_packages.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698