fixed a bug in json_run_localhost scenario generation

pull/16522/head
Bill Feng 7 years ago
parent d766b9a2a4
commit c4a5323362
  1. 6
      test/cpp/qps/json_run_localhost_scenario_gen.py
  2. 2
      test/cpp/qps/json_run_localhost_scenarios.bzl

@ -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'): \

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save