From 94191c3f6bfa29d75c519803da8de08bc9e7cc7d Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Fri, 04 Apr 2008 14:52:15 +0000
Subject: [PATCH] add client tag management for the reports

---
 opends/tests/system-tests/phases/scheduler/scheduler.xml |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/opends/tests/system-tests/phases/scheduler/scheduler.xml b/opends/tests/system-tests/phases/scheduler/scheduler.xml
index c13c5b6..4bfcf87 100755
--- a/opends/tests/system-tests/phases/scheduler/scheduler.xml
+++ b/opends/tests/system-tests/phases/scheduler/scheduler.xml
@@ -174,15 +174,14 @@
             logFile = STAXResult
             fileList.append(logFile)
             fileFd = open(logFile,'w')
-            
-            # Write start tag
-            str = '\n&lt;client name=\"%s\"' % client.getName()
-            str = '%s host=\"%s\"'           % (str,client.getHost())
-            str = '%s start=\"%s\"'          % (str,client.getStart())
-            str = '%s stop=\"%s\"'           % (str,client.getStop())
-            str = '%s dependency=\"%s\"&gt;\n' % (str,client.getDependency())
-            fileFd.write(str)
           </script>
+          <!-- == Write tag for xml report -->
+          <call function="'writeStartTagClient'">
+          {
+            'client' : client,
+            'fileFd' : LOG_MAIN_FD 
+          }
+          </call>
           
           
           <!--== Start is NOT defined in client attribute ==-->
@@ -259,9 +258,12 @@
           </call>
           
           
+          <!-- == Write tag for xml report -->
+          <call function="'writeEndTagClient'">
+          { 'fileFd'    : LOG_MAIN_FD }
+          </call>
           <!--==== close logfile ====-->
           <script>
-            fileFd.write('&lt;/client&gt;\n')
             fileFd.close()
             fileFd = ''
           </script>

--
Gitblit v1.10.0