aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-05-09 15:38:46 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-05-09 15:38:46 -0700
commit92a9156970945a9cdc9bff861435ce46c8a0594b (patch)
tree94082981ffb464383fd03e1d35d4dd660a518abe /test
parentdcd8d7cd9955ddaddecec5592ce7f85d864bb942 (diff)
parentabd1b38885a171fe5f54293581e8f5f67680f358 (diff)
Merge pull request #6462 from jtattermusch/benchmarking_unify_scenarios
Improve benchmarking scenarios and enable "smoketest only" suite.
Diffstat (limited to 'test')
-rwxr-xr-xtest/cpp/qps/gen_build_yaml.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/cpp/qps/gen_build_yaml.py b/test/cpp/qps/gen_build_yaml.py
index 9d6bf2ab73..6b3329b046 100755
--- a/test/cpp/qps/gen_build_yaml.py
+++ b/test/cpp/qps/gen_build_yaml.py
@@ -43,12 +43,16 @@ sys.path.append(run_tests_root)
import performance.scenario_config as scenario_config
+def _scenario_json_string(scenario_json):
+ return json.dumps(scenario_config.remove_nonproto_fields(scenario_json))
+
print yaml.dump({
'tests': [
{
'name': 'json_run_localhost',
- 'shortname': 'json_run_localhost:%s' % js['name'],
- 'args': ['--scenario_json', pipes.quote(json.dumps(js))],
+ 'shortname': 'json_run_localhost:%s' % scenario_json['name'],
+ 'args': ['--scenario_json',
+ pipes.quote(_scenario_json_string(scenario_json))],
'ci_platforms': ['linux', 'mac', 'posix', 'windows'],
'platforms': ['linux', 'mac', 'posix', 'windows'],
'flaky': False,
@@ -58,6 +62,6 @@ print yaml.dump({
'cpu_cost': 1000.0,
'exclude_configs': []
}
- for js in scenario_config.CXXLanguage().scenarios()
+ for scenario_json in scenario_config.CXXLanguage().scenarios()
]
})