From: Sage Weil Date: Sun, 28 Jul 2013 16:04:05 +0000 (-0700) Subject: test/system/*: parse CEPH_ARGS environment X-Git-Tag: v0.67-rc3~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7b683f7f6a4b1fbb526c4f5f5660cc36f6a3abbd;p=ceph.git test/system/*: parse CEPH_ARGS environment Signed-off-by: Sage Weil --- diff --git a/src/test/system/rados_list_parallel.cc b/src/test/system/rados_list_parallel.cc index a1c6e270265d..d530c83441c6 100644 --- a/src/test/system/rados_list_parallel.cc +++ b/src/test/system/rados_list_parallel.cc @@ -62,6 +62,7 @@ public: RETURN1_IF_NONZERO(rados_create(&cl, NULL)); rados_conf_parse_argv(cl, m_argc, m_argv); RETURN1_IF_NONZERO(rados_conf_read_file(cl, NULL)); + rados_conf_parse_env(cl, NULL); std::string log_name = SysTestSettings::inst().get_log_name(get_id_str()); if (!log_name.empty()) rados_conf_set(cl, "log_file", log_name.c_str()); @@ -142,6 +143,7 @@ public: RETURN1_IF_NONZERO(rados_create(&cl, NULL)); rados_conf_parse_argv(cl, m_argc, m_argv); RETURN1_IF_NONZERO(rados_conf_read_file(cl, NULL)); + rados_conf_parse_env(cl, NULL); std::string log_name = SysTestSettings::inst().get_log_name(get_id_str()); if (!log_name.empty()) rados_conf_set(cl, "log_file", log_name.c_str()); diff --git a/src/test/system/rados_open_pools_parallel.cc b/src/test/system/rados_open_pools_parallel.cc index 445f2ebc485d..82c712077f27 100644 --- a/src/test/system/rados_open_pools_parallel.cc +++ b/src/test/system/rados_open_pools_parallel.cc @@ -68,6 +68,7 @@ public: if (!log_name.empty()) rados_conf_set(cl, "log_file", log_name.c_str()); RETURN1_IF_NONZERO(rados_conf_read_file(cl, NULL)); + rados_conf_parse_env(cl, NULL); RETURN1_IF_NONZERO(rados_connect(cl)); if (m_pool_setup_sem) m_pool_setup_sem->wait(); diff --git a/src/test/system/st_rados_create_pool.cc b/src/test/system/st_rados_create_pool.cc index dcae15375afa..29b8d14b7e7e 100644 --- a/src/test/system/st_rados_create_pool.cc +++ b/src/test/system/st_rados_create_pool.cc @@ -72,6 +72,7 @@ run() std::string log_name = SysTestSettings::inst().get_log_name(get_id_str()); if (!log_name.empty()) rados_conf_set(cl, "log_file", log_name.c_str()); + rados_conf_parse_env(cl, NULL); if (m_setup_sem) { m_setup_sem->wait(); diff --git a/src/test/system/st_rados_delete_objs.cc b/src/test/system/st_rados_delete_objs.cc index 38dc47a35579..b43ffdda6aeb 100644 --- a/src/test/system/st_rados_delete_objs.cc +++ b/src/test/system/st_rados_delete_objs.cc @@ -45,6 +45,7 @@ int StRadosDeleteObjs::run() RETURN1_IF_NONZERO(rados_create(&cl, NULL)); rados_conf_parse_argv(cl, m_argc, m_argv); RETURN1_IF_NONZERO(rados_conf_read_file(cl, NULL)); + rados_conf_parse_env(cl, NULL); RETURN1_IF_NONZERO(rados_connect(cl)); m_setup_sem->wait(); m_setup_sem->post(); diff --git a/src/test/system/st_rados_delete_pool.cc b/src/test/system/st_rados_delete_pool.cc index d954bf46c231..de553e98e13a 100644 --- a/src/test/system/st_rados_delete_pool.cc +++ b/src/test/system/st_rados_delete_pool.cc @@ -41,6 +41,7 @@ int StRadosDeletePool::run() RETURN1_IF_NONZERO(rados_create(&cl, NULL)); rados_conf_parse_argv(cl, m_argc, m_argv); RETURN1_IF_NONZERO(rados_conf_read_file(cl, NULL)); + rados_conf_parse_env(cl, NULL); RETURN1_IF_NONZERO(rados_connect(cl)); m_pool_setup_sem->wait(); m_pool_setup_sem->post(); diff --git a/src/test/system/st_rados_list_objects.cc b/src/test/system/st_rados_list_objects.cc index bb153affeb83..be6ead649874 100644 --- a/src/test/system/st_rados_list_objects.cc +++ b/src/test/system/st_rados_list_objects.cc @@ -56,6 +56,7 @@ run() RETURN1_IF_NONZERO(rados_create(&cl, NULL)); rados_conf_parse_argv(cl, m_argc, m_argv); RETURN1_IF_NONZERO(rados_conf_read_file(cl, NULL)); + rados_conf_parse_env(cl, NULL); RETURN1_IF_NONZERO(rados_connect(cl)); m_pool_setup_sem->wait(); m_pool_setup_sem->post(); diff --git a/src/test/system/st_rados_notify.cc b/src/test/system/st_rados_notify.cc index 10e3e4bfbc39..e74711cb6410 100644 --- a/src/test/system/st_rados_notify.cc +++ b/src/test/system/st_rados_notify.cc @@ -44,6 +44,8 @@ int StRadosNotify::run() RETURN1_IF_NONZERO(rados_create(&cl, NULL)); rados_conf_parse_argv(cl, m_argc, m_argv); RETURN1_IF_NONZERO(rados_conf_read_file(cl, NULL)); + rados_conf_parse_env(cl, NULL); + if (m_setup_sem) { m_setup_sem->wait(); m_setup_sem->post(); diff --git a/src/test/system/st_rados_watch.cc b/src/test/system/st_rados_watch.cc index 991dde8ea77e..696b0867e889 100644 --- a/src/test/system/st_rados_watch.cc +++ b/src/test/system/st_rados_watch.cc @@ -52,6 +52,8 @@ run() RETURN1_IF_NONZERO(rados_create(&cl, NULL)); rados_conf_parse_argv(cl, m_argc, m_argv); RETURN1_IF_NONZERO(rados_conf_read_file(cl, NULL)); + rados_conf_parse_env(cl, NULL); + if (m_setup_sem) { m_setup_sem->wait(); m_setup_sem->post();