From 3b10b7f44b8fcc8338c5638e6a8a77eb4f17b121 Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Tue, 22 May 2007 08:24:10 +0000
Subject: [PATCH] Implement Issue 1498 Test report should show build number and date

---
 opends/tests/functional-tests/shared/functions/dsadm.xml |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/opends/tests/functional-tests/shared/functions/dsadm.xml b/opends/tests/functional-tests/shared/functions/dsadm.xml
index 6b70a8a..b1d635b 100755
--- a/opends/tests/functional-tests/shared/functions/dsadm.xml
+++ b/opends/tests/functional-tests/shared/functions/dsadm.xml
@@ -26,7 +26,7 @@
  !      Portions Copyright 2006-2007 Sun Microsystems, Inc.
  ! -->
 <stax>
-
+  
   <!-- This function configures DS using the configure-ds script -->
   <function name="ConfigureDsWithScript">
     <function-prolog>
@@ -189,7 +189,13 @@
           Help option
         </function-arg-description>
         <function-arg-property name="type" value="option"/>
-      </function-arg-def>          
+      </function-arg-def>
+      <function-arg-def name="dsBuildInfo" type="optional">
+        <function-arg-description>
+          Directory server build information
+        </function-arg-description>
+        <function-arg-property name="type" value="option"/>
+      </function-arg-def>                
     </function-map-args>
     
     <sequence>
@@ -214,6 +220,9 @@
         
         if dsHelp:
           STAFCmdParamsList.append('-H')
+          
+        if dsBuildInfo:
+          STAFCmdParamsList.append('-F')
  
         STAFCmdParams=' '.join(STAFCmdParamsList)
       </script>
@@ -234,12 +243,19 @@
         <stderr mode="'stdout'"/>
         <returnstdout/>
       </process>
+
+      <script>
+        startRC=RC
+        startResult=STAXResult
+      </script>
       
       <call function="'checkRC'">
-          { 'returncode' : RC ,
-            'result'     : STAXResult }
+          { 'returncode' : startRC ,
+            'result'     : startResult }
       </call>
-      
+     
+      <return>startResult[0]</return>
+          
     </sequence>
     
   </function>

--
Gitblit v1.10.0