From cb2184dd20f4eb568cebb8915315abe13568214f Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Sun, 26 Aug 2007 20:41:30 +0000
Subject: [PATCH] Fix the unit tests and the dsconfig.xml to run in non-prompt mode. Remove a duplicate message in admin_tools.properties.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
index cd9807f..e61f1d0 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/TestCaseUtils.java
@@ -1231,7 +1231,7 @@
    */
   public static void dsconfig(String... args)
   {
-    String[] fullArgs = new String[args.length + 8];
+    String[] fullArgs = new String[args.length + 9];
     fullArgs[0] = "-h";
     fullArgs[1] = "127.0.0.1";
     fullArgs[2] = "-p";
@@ -1240,8 +1240,9 @@
     fullArgs[5] = "cn=Directory Manager";
     fullArgs[6] = "-w";
     fullArgs[7] = "password";
+    fullArgs[8] = "-n";
 
-    System.arraycopy(args, 0, fullArgs, 8, args.length);
+    System.arraycopy(args, 0, fullArgs, 9, args.length);
 
     assertEquals(DSConfig.main(fullArgs, false, System.out, System.err), 0);
   }

--
Gitblit v1.10.0