aboutsummaryrefslogtreecommitdiff
path: root/bestflags/pipeline_process.py
diff options
context:
space:
mode:
authorYuheng Long <yuhenglong@google.com>2013-07-15 10:12:44 -0700
committerChromeBot <chrome-bot@google.com>2013-07-16 10:58:56 -0700
commita791546e80cede30d5325bec834b35b99b7e7bfe (patch)
treea3f565fa0081d627df1705ba68dd04cddc256fa6 /bestflags/pipeline_process.py
parent26ec76c8a9d4f5dd023513d2772fa6cd4b6749ea (diff)
downloadtoolchain-utils-a791546e80cede30d5325bec834b35b99b7e7bfe.tar.gz
Extract out a common mock task into a module.
The mock tasks are used in multiple unitest modules. It is not extracted out into a module to enable reuse. BUG=None TEST=unit testing for the pipeline stage and pipeline workers. Change-Id: Iee436266f7ea26c2877377f52208cc5cd31e7815 Reviewed-on: https://gerrit-int.chromium.org/41001 Reviewed-by: Simon Que <sque@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yuheng Long <yuhenglong@google.com> Tested-by: Yuheng Long <yuhenglong@google.com>
Diffstat (limited to 'bestflags/pipeline_process.py')
-rw-r--r--bestflags/pipeline_process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bestflags/pipeline_process.py b/bestflags/pipeline_process.py
index 0999c28b..20f77ab5 100644
--- a/bestflags/pipeline_process.py
+++ b/bestflags/pipeline_process.py
@@ -101,7 +101,7 @@ class PipelineProcess(multiprocessing.Process):
self._result_queue.put(POISONPILL)
break
- task_key = task.GetKey(self._stage)
+ task_key = task.GetIdentifier(self._stage)
if task_key in mycache:
# The task has been encountered before. It will be sent to the helper
# module for further processing.