]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/kv_store_bench.cc:fix teuthology_tests() return value 30293/head
authorluo rixin <luorixin@huawei.com>
Tue, 10 Sep 2019 13:48:59 +0000 (21:48 +0800)
committerluo rixin <luorixin@huawei.com>
Fri, 11 Oct 2019 08:41:49 +0000 (16:41 +0800)
set teuthology_tests()  the right return value while max_ops_in_flight > 1
Signed-off-by: luo rixin <luorixin@huawei.com>
src/test/kv_store_bench.cc

index ff9b36872ddb9d1ba4d0bbf9c7bbccfc77645333..d3ca358b1fb9ace17f30d463c71a0a123974f050 100644 (file)
@@ -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);
   }