From: Petri Ovaska Date: Thu, 15 Apr 2021 05:22:56 +0000 (+0300) Subject: New namespace (--ns) option in sdltool test-get-set -command X-Git-Tag: 1.2.1~3 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=aad0a0b5f51c2abd855aba0a9cb8e99ac5023600;p=ric-plt%2Fsdl.git New namespace (--ns) option in sdltool test-get-set -command Added a new '--ns' option to change namespace string in sdltool test-get-set -command: --ns arg (=sdltoolns) namespace to use Issue-ID: RIC-699 Change-Id: I4c36ead029c78b488dc32003c285e18ae92534d6 Signed-off-by: Petri Ovaska --- diff --git a/src/cli/testgetsetcommand.cpp b/src/cli/testgetsetcommand.cpp index 81bdd1c..007cb95 100644 --- a/src/cli/testgetsetcommand.cpp +++ b/src/cli/testgetsetcommand.cpp @@ -93,7 +93,7 @@ namespace { auto keyCount(map["key-count"].as()); const auto timeout(map["timeout"].as()); - auto ns("sdltoolns"); + auto ns(map["ns"].as()); setTimeout(timeout); auto sdl(createSyncStorage(out)); if (sdl == nullptr) @@ -141,4 +141,5 @@ AUTO_REGISTER_COMMAND(std::bind(TestGetSetCommand, std::placeholders::_1, std::p "Check that basic SDL api commands (set/get) works normally and measure latency.", CommandMap::Category::UTIL, 30010, ("key-count", boost::program_options::value()->default_value(10), "Number of write/read keys") - ("timeout", boost::program_options::value()->default_value(0), "Timeout (in seconds), Default is no timeout")); + ("timeout", boost::program_options::value()->default_value(0), "Timeout (in seconds), Default is no timeout") + ("ns", boost::program_options::value()->default_value("sdltoolns"), "namespace to use"));