From: luo rixin Date: Tue, 10 Sep 2019 13:48:59 +0000 (+0800) Subject: test/kv_store_bench.cc:fix teuthology_tests() return value X-Git-Tag: v15.1.0~1230^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f2702a83d3028bd85701285fcd0b291bbfc30827;p=ceph.git test/kv_store_bench.cc:fix teuthology_tests() return value set teuthology_tests() the right return value while max_ops_in_flight > 1 Signed-off-by: luo rixin --- diff --git a/src/test/kv_store_bench.cc b/src/test/kv_store_bench.cc index ff9b36872ddb..d3ca358b1fb9 100644 --- a/src/test/kv_store_bench.cc +++ b/src/test/kv_store_bench.cc @@ -535,7 +535,7 @@ void KvStoreBench::print_time_data() { int KvStoreBench::teuthology_tests() { int err = 0; if (max_ops_in_flight > 1) { - test_teuthology_aio(&KvStoreBench::rand_distr, probs); + err = test_teuthology_aio(&KvStoreBench::rand_distr, probs); } else { err = test_teuthology_sync(&KvStoreBench::rand_distr, probs); }