From 94905db3f92f5eeedd88d22954a349fe1b8605ba Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 28 May 2010 09:47:08 +0000
Subject: [PATCH] Update tests

---
 opendj-sdk/opends/tests/staf-tests/shared/functions/tools.xml |   31 ++++++++++++++++++++++---------
 1 files changed, 22 insertions(+), 9 deletions(-)

diff --git a/opendj-sdk/opends/tests/staf-tests/shared/functions/tools.xml b/opendj-sdk/opends/tests/staf-tests/shared/functions/tools.xml
index 9fcc19c..353dccc 100755
--- a/opendj-sdk/opends/tests/staf-tests/shared/functions/tools.xml
+++ b/opendj-sdk/opends/tests/staf-tests/shared/functions/tools.xml
@@ -1038,14 +1038,26 @@
     </function-list-args>
       
     <sequence>
-      <!-- Start the servers in the list -->    
-      <script>
-        # check if using coverage in which case we'll avoid doing parallele iterate
-        coverage = False
-        if os.path.exists(os.path.join(serverList[0].getDir(),OPENDSNAME,'lib','emma.jar')):
-          coverage = True
-        print 'tools.xml - coverage=%s' % coverage
-      </script>
+
+      <!-- Check if using coverage in which case we'll avoid doing parallele iterate -->
+      <!-- Check if 'emma.jar' exists -->
+      <call function="'GetEntry'">
+        {
+        'location'  : STAF_REMOTE_HOSTNAME ,
+        'entry'     : '%s/%s/lib/emma.jar' % (serverList[0].getDir(),OPENDSNAME) ,
+        'attribute' : 'TYPE'
+        }
+      </call>
+      <if expr="RC != 48">
+        <!-- 'emma.jar' exists -->
+        <script>coverage = True</script>
+        <else>
+          <script>coverage = False</script>
+        </else>
+      </if>
+      <message>'tools.xml - coverage=%s' % coverage</message>
+
+      <!-- Start the servers in the list -->
       <if expr="coverage == True">
         <sequence>
           <message>'starting servers in sequence using "iterate"'</message>
@@ -1595,7 +1607,8 @@
               'dsInstanceDn'        : dsInstanceDn ,
               'dsInstancePswd'      : dsInstancePswd ,
               'dsInfo'              : taskId ,
-              'dsQuiet'             : 'True'
+              'dsQuiet'             : 'True' ,
+              'expectedRC'          : 'noCheck'
             }
           </call>
           

--
Gitblit v1.10.0