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 <petri.ovaska@nokia.com>
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 @@
{
auto keyCount(map["key-count"].as<int>());
const auto timeout(map["timeout"].as<int>());
- auto ns("sdltoolns");
+ auto ns(map["ns"].as<std::string>());
setTimeout(timeout);
auto sdl(createSyncStorage(out));
if (sdl == nullptr)
@@ -141,4 +141,5 @@
"Check that basic SDL api commands (set/get) works normally and measure latency.",
CommandMap::Category::UTIL, 30010,
("key-count", boost::program_options::value<int>()->default_value(10), "Number of write/read keys")
- ("timeout", boost::program_options::value<int>()->default_value(0), "Timeout (in seconds), Default is no timeout"));
+ ("timeout", boost::program_options::value<int>()->default_value(0), "Timeout (in seconds), Default is no timeout")
+ ("ns", boost::program_options::value<std::string>()->default_value("sdltoolns"), "namespace to use"));