diff options
author | Bill Feng <yfen@google.com> | 2018-08-30 15:22:08 -0700 |
---|---|---|
committer | Bill Feng <yfen@google.com> | 2018-08-30 15:22:08 -0700 |
commit | c4a53233628dacc563fc53ab1582b659f3f0a5de (patch) | |
tree | fa829fc1e7427ea18ab1716e24d891ba06ef96dd /test/cpp/qps/json_run_localhost_scenario_gen.py | |
parent | d766b9a2a40fd3002d9b93c97525a868c9d92dc4 (diff) |
fixed a bug in json_run_localhost scenario generation
Diffstat (limited to 'test/cpp/qps/json_run_localhost_scenario_gen.py')
-rwxr-xr-x | test/cpp/qps/json_run_localhost_scenario_gen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/qps/json_run_localhost_scenario_gen.py b/test/cpp/qps/json_run_localhost_scenario_gen.py index 7fe12234d4..ab14f0e4a5 100755 --- a/test/cpp/qps/json_run_localhost_scenario_gen.py +++ b/test/cpp/qps/json_run_localhost_scenario_gen.py @@ -21,10 +21,10 @@ def generate_args(): all_scenario_set = gen.generate_yaml() all_scenario_set = all_scenario_set['tests'] json_run_localhost_scenarios = \ - [item for item in all_scenario_set if item['name'] == 'qps_json_driver'] + [item for item in all_scenario_set if item['name'] == 'json_run_localhost'] json_run_localhost_arg_set = \ - [item['args'][2] for item in json_run_localhost_scenarios \ - if 'args' in item and len(item['args']) > 2] + [item['args'][1] for item in json_run_localhost_scenarios \ + if 'args' in item and len(item['args']) > 1] deserialized_scenarios = [json.loads(item)['scenarios'][0] \ for item in json_run_localhost_arg_set] all_scenarios = {scenario['name'].encode('ascii', 'ignore'): \ |