From 90c69c520ec747c9e6ed92586b284f319579b674 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Fri, 28 Mar 2008 11:42:44 +0000
Subject: [PATCH] update clients following new interface

---
 opends/tests/system-tests/clients/modifyLoad/modifyLoad.xml |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/opends/tests/system-tests/clients/modifyLoad/modifyLoad.xml b/opends/tests/system-tests/clients/modifyLoad/modifyLoad.xml
index d6d0ef3..8239a1c 100755
--- a/opends/tests/system-tests/clients/modifyLoad/modifyLoad.xml
+++ b/opends/tests/system-tests/clients/modifyLoad/modifyLoad.xml
@@ -34,6 +34,8 @@
   <!-- ************************************************************ -->
   <function name="modifyLoad" scope="local">
     <function-map-args>
+      <function-arg-def name="workingDir" type="required">
+      </function-arg-def>
       <function-arg-def name="client" type="required">
       </function-arg-def>
       <function-arg-def name="instances" type="required">
@@ -124,7 +126,7 @@
             <location>client.getHost()</location>
             <command mode="'shell'">'chmod +x build.ksh'</command>
             <parms/>
-            <workdir>'%s/clients/modifyLoad' % LOCAL_TESTS_DIR</workdir>
+            <workdir>workingDir</workdir>
             <envs>['PATH=/bin:/usr/bin']</envs>
             <stderr mode="'stdout'"/>
             <stdout/>
@@ -155,7 +157,7 @@
             <location>client.getHost()</location>
             <command mode="'shell'">'./build.ksh'</command>
             <parms/>
-            <workdir>'%s/clients/modifyLoad' % LOCAL_TESTS_DIR</workdir>
+            <workdir>workingDir</workdir>
             <envs>['PATH=/bin:/usr/bin']</envs>
             <stderr mode="'stdout'"/>
             <stdout/>
@@ -169,7 +171,7 @@
           <if expr="RC != 0">
             <message>
               'FAILED to build client %s on %s' % \
-              (client.getHost(),client.getName())
+              (client.getName(),client.getHost())
             </message>
           </if>
           <script>
@@ -207,7 +209,7 @@
             <location>client.getHost()</location>
             <command>'java'</command>
             <parms>cParam </parms>
-            <workdir>'%s/clients/searchLoad' % LOCAL_TESTS_DIR</workdir>
+            <workdir>workingDir</workdir>
             <envs>['PATH=/bin:/usr/bin']</envs>
             <stderr mode="'stdout'"/>
             <stdout>outFile</stdout>

--
Gitblit v1.10.0