From 6d6a8d1075e821d1d66debfb0ead9146f2d873e4 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Fri, 11 Apr 2008 09:08:30 +0000
Subject: [PATCH] fix StartDsWithScript and a call

---
 opends/tests/system-tests/clients/restartDs/restartDs.xml       |    1 +
 opends/tests/system-tests/phases/shared/functions/opendsadm.xml |    8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/opends/tests/system-tests/clients/restartDs/restartDs.xml b/opends/tests/system-tests/clients/restartDs/restartDs.xml
index 82629f1..61327e8 100755
--- a/opends/tests/system-tests/clients/restartDs/restartDs.xml
+++ b/opends/tests/system-tests/clients/restartDs/restartDs.xml
@@ -104,6 +104,7 @@
           <call function="'StartDsWithScript'">
             { 'location'  : serverInstance.getHost(),
               'dsPath'    : serverInstance.getInstallDir(),
+              'instance'  : serverInstance,
               'fileFd'    : fileFd
             }
           </call>
diff --git a/opends/tests/system-tests/phases/shared/functions/opendsadm.xml b/opends/tests/system-tests/phases/shared/functions/opendsadm.xml
index 617465f..a43c005 100755
--- a/opends/tests/system-tests/phases/shared/functions/opendsadm.xml
+++ b/opends/tests/system-tests/phases/shared/functions/opendsadm.xml
@@ -285,8 +285,8 @@
         STAFCmdParams=' '.join(STAFCmdParamsList)
       </script>
       
-      <!-- define environment variables -->
       <script>
+        # define environment variables
         env = []
         env.append('PATH=/bin:/usr/bin:%s' % dsBinPath)
         env.append('JAVA_HOME=%s' % JAVA_HOME)
@@ -298,10 +298,12 @@
           tuning = instance.getTuning()
           if tuning.getJavaArgs() != NOT_DEFINED:
             env.append('OPENDS_JAVA_ARGS=%s' % tuning.getJavaArgs())
+          name = 'StartDs %s:%s' % (instance.getName(),instance.getLDAPPort())
+        else:
+          name = 'StartDs'
       </script>
       <call function="'runCommand'">
-        { 'name'      : 'StartDs %s:%s' % \
-                        (instance.getName(),instance.getLDAPPort()),
+        { 'name'      : name,
           'location'  : location,
           'command'   : STAFCmd,
           'arguments' : STAFCmdParams,

--
Gitblit v1.10.0