From 559f171dc5652fa8569ce04073d75d93c7859748 Mon Sep 17 00:00:00 2001
From: el_kaboing <el_kaboing@localhost>
Date: Fri, 11 Aug 2006 21:03:57 +0000
Subject: [PATCH] The backend tests now can stop and start OpenDS with the port number specified in the testng.xml file.

---
 opends/tests/integration-tests-testng/src/server/org/opends/server/OpenDSAdmin.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/opends/tests/integration-tests-testng/src/server/org/opends/server/OpenDSAdmin.java b/opends/tests/integration-tests-testng/src/server/org/opends/server/OpenDSAdmin.java
index 23c8986..da3f5f5 100644
--- a/opends/tests/integration-tests-testng/src/server/org/opends/server/OpenDSAdmin.java
+++ b/opends/tests/integration-tests-testng/src/server/org/opends/server/OpenDSAdmin.java
@@ -27,17 +27,18 @@
 package org.opends.server;
 
 import java.io.*;
-//import org.opends.server.core.OpenDS;
 import org.opends.server.tools.StopDS;
 
 public class OpenDSAdmin
        extends Thread
 {
   private String dsee_home;
+  private String port;
 
-  public OpenDSAdmin(String in_dsee_home)
+  public OpenDSAdmin(String in_dsee_home, String in_port)
   {
     dsee_home = in_dsee_home;
+    port = in_port;
   }
 
   public void run()
@@ -62,7 +63,7 @@
 
   public void stopDS() throws Exception
   {
-    String exec_cmd = dsee_home + "/bin/stop-ds.sh";
+    String exec_cmd = dsee_home + "/bin/stop-ds.sh -p " + port;
     Runtime rtime = Runtime.getRuntime();
     Process child = rtime.exec(exec_cmd);
     child.waitFor();

--
Gitblit v1.10.0