diff options
author | 2016-04-21 18:48:59 -0700 | |
---|---|---|
committer | 2016-04-21 18:48:59 -0700 | |
commit | 626f303eefd1f376357b71f8c811362f5b3f1e68 (patch) | |
tree | 67c1d66e82a966fb4c4348ee2bdc326c30ca487f /test/cpp/qps/qps_json_driver.cc | |
parent | 1b68cbdf1c5a55ab6949471e37f0e4702a8ca7b2 (diff) | |
parent | dfdfe26958e8430417c6b529ad28318d327a847b (diff) |
Merge pull request #6252 from vjpai/empty_driver_wall
Keep out performance tests that don't have scenarios
Diffstat (limited to 'test/cpp/qps/qps_json_driver.cc')
-rw-r--r-- | test/cpp/qps/qps_json_driver.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cpp/qps/qps_json_driver.cc b/test/cpp/qps/qps_json_driver.cc index b2e2457bdc..a4d9b001f3 100644 --- a/test/cpp/qps/qps_json_driver.cc +++ b/test/cpp/qps/qps_json_driver.cc @@ -104,6 +104,9 @@ static void QpsDriver() { } GPR_ASSERT(scenarios.ParseFromString(binary)); + // Make sure that there is at least some valid scenario here + GPR_ASSERT(scenarios.scenarios_size() > 0); + for (int i = 0; i < scenarios.scenarios_size(); i++) { const Scenario &scenario = scenarios.scenarios(i); std::cerr << "RUNNING SCENARIO: " << scenario.name() << "\n"; |