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/phases/shared/functions/opendsadm.xml |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

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