]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/gtest_seastar: consume argv before passing them to seastar 37888/head
authorKefu Chai <kchai@redhat.com>
Thu, 29 Oct 2020 06:59:21 +0000 (14:59 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 29 Oct 2020 07:00:41 +0000 (15:00 +0800)
so we can pass gtest options to the test without annoying seastar app.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/crimson/gtest_seastar.cc

index dd1d39092053f9a16fdc19f2952e6ade7f1d21a0..767066b3173433abac405086d404c559f71f7efc 100644 (file)
@@ -50,13 +50,14 @@ void seastar_gtest_env_t::reactor(int argc, char** argv)
 
 int main(int argc, char **argv)
 {
+  ::testing::InitGoogleTest(&argc, argv);
+
   seastar_test_suite_t::seastar_env.init(argc, argv);
 
   seastar::global_logger_registry().set_all_loggers_level(
     seastar::log_level::debug
   );
 
-  ::testing::InitGoogleTest(&argc, argv);
   int ret = RUN_ALL_TESTS();
 
   seastar_test_suite_t::seastar_env.stop();