cli: Add a command line flag to specify datastore
GCC doesn't like multiline raw string literals in macros, so I head to
get rid of the macro.
Change-Id: I1fe2c2f45f2b5700e682c229fdd182edc20e4d77
diff --git a/tests/datastore_access.cpp b/tests/datastore_access.cpp
index a1f9322..d5f3e12 100644
--- a/tests/datastore_access.cpp
+++ b/tests/datastore_access.cpp
@@ -40,7 +40,7 @@
SysrepoSubscription subscription("example-schema", &mock);
#ifdef sysrepo_BACKEND
- SysrepoAccess datastore("netconf-cli-test");
+ SysrepoAccess datastore("netconf-cli-test", Datastore::Running);
#elif defined(netconf_BACKEND)
NetconfAccess datastore(NETOPEER_SOCKET_PATH);
#else
@@ -406,7 +406,7 @@
srSubscription->rpc_subscribe("/example-schema:launch-nukes", cb, nullptr, SR_SUBSCR_CTX_REUSE);
#ifdef sysrepo_BACKEND
- SysrepoAccess datastore("netconf-cli-test");
+ SysrepoAccess datastore("netconf-cli-test", Datastore::Running);
#elif defined(netconf_BACKEND)
NetconfAccess datastore(NETOPEER_SOCKET_PATH);
#else