diff options
author | Yuheng Long <yuhenglong@google.com> | 2013-08-06 15:30:38 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-08-07 15:24:58 -0700 |
commit | c1fb0f1051208907df137371f3d100132f19cf10 (patch) | |
tree | e10f826b6fa029d962456237bb5c173f930cef85 /bestflags/pipeline_process_test.py | |
parent | f1f606e1c5b559aa264518a89595afd787f12e8a (diff) | |
download | toolchain-utils-c1fb0f1051208907df137371f3d100132f19cf10.tar.gz |
Add underscore to separate words in variables.
BUG=None
TEST=unit testings for the pipeline stage, pipeline workers, generation,
steering, task, flag and hill climbing.
Change-Id: I0efdf5e7ad85b42f37519b6e0cebea8352bbf563
Reviewed-on: https://gerrit-int.chromium.org/42430
Reviewed-by: Simon Que <sque@google.com>
Tested-by: Yuheng Long <yuhenglong@google.com>
Commit-Queue: Yuheng Long <yuhenglong@google.com>
Diffstat (limited to 'bestflags/pipeline_process_test.py')
-rw-r--r-- | bestflags/pipeline_process_test.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/bestflags/pipeline_process_test.py b/bestflags/pipeline_process_test.py index 08b4e87d..989fd742 100644 --- a/bestflags/pipeline_process_test.py +++ b/bestflags/pipeline_process_test.py @@ -18,7 +18,7 @@ import pipeline_process # Pick an integer at random. ERROR = -334 # Pick an integer at random. -TESTSTAGE = -8 +TEST_STAGE = -8 def MockHelper(done_dict, helper_queue, _, result_queue): @@ -34,11 +34,11 @@ def MockHelper(done_dict, helper_queue, _, result_queue): # verify that it does not get duplicate "1"s in the test. result_queue.put(ERROR) else: - result_queue.put(('helper', task.GetIdentifier(TESTSTAGE))) + result_queue.put(('helper', task.GetIdentifier(TEST_STAGE))) def MockWorker(task, _, result_queue): - result_queue.put(('worker', task.GetIdentifier(TESTSTAGE))) + result_queue.put(('worker', task.GetIdentifier(TEST_STAGE))) class PipelineProcessTest(unittest.TestCase): @@ -59,13 +59,14 @@ class PipelineProcessTest(unittest.TestCase): inp = manager.Queue() output = manager.Queue() - process = pipeline_process.PipelineProcess(2, 'testing', {}, TESTSTAGE, inp, - MockHelper, MockWorker, output) + process = pipeline_process.PipelineProcess(2, 'testing', {}, TEST_STAGE, + inp, MockHelper, MockWorker, + output) process.start() - inp.put(MockTask(TESTSTAGE, 1)) - inp.put(MockTask(TESTSTAGE, 1)) - inp.put(MockTask(TESTSTAGE, 2)) + inp.put(MockTask(TEST_STAGE, 1)) + inp.put(MockTask(TEST_STAGE, 1)) + inp.put(MockTask(TEST_STAGE, 2)) inp.put(pipeline_process.POISONPILL) process.join() |