- verboser log, faster start
[oweals/gnunet.git] / src / arm / test_gnunet_service_arm.c
index 98d8c6354fd3c077b99b6f20f682c0983cb33fc2..d367bc6fef46e5170120555b97b518abe9d8bd24 100644 (file)
@@ -107,6 +107,20 @@ static void
 run (void *cls, char *const *args, const char *cfgfile,
      const struct GNUNET_CONFIGURATION_Handle *c)
 {
+  char *armconfig;
+
+  if (NULL != cfgfile)
+  {
+    if (GNUNET_OK !=
+        GNUNET_CONFIGURATION_get_value_filename (c, "arm", "CONFIG",
+                                              &armconfig))
+    {
+      GNUNET_CONFIGURATION_set_value_string (c, "arm", "CONFIG",
+                                             cfgfile);
+    }
+    else
+      GNUNET_free (armconfig);
+  }
   arm = GNUNET_ARM_connect (c, NULL);
   GNUNET_ARM_start_service (arm, "arm",
                            GNUNET_OS_INHERIT_STD_OUT_AND_ERR, START_TIMEOUT,