From 62f40066df9df06c89568ef2ab910c58061ac11f Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Mon, 07 Apr 2008 13:25:21 +0000
Subject: [PATCH] use share fct getEnabledClients and fix issue

---
 opendj-sdk/opends/tests/system-tests/phases/scheduler/scheduler.xml |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/opendj-sdk/opends/tests/system-tests/phases/scheduler/scheduler.xml b/opendj-sdk/opends/tests/system-tests/phases/scheduler/scheduler.xml
index 4bfcf87..50cd2d9 100755
--- a/opendj-sdk/opends/tests/system-tests/phases/scheduler/scheduler.xml
+++ b/opendj-sdk/opends/tests/system-tests/phases/scheduler/scheduler.xml
@@ -70,12 +70,8 @@
       </call>
       
       <!--==== Get the clients list from all modules ==============-->
-      <script>
-        clients = []
-        for m in scheduler:
-          if (m.getEnabled() == "true"):
-            clients.extend(m.getClients())
-      </script>
+      <call function="'getEnabledClients'">{'scheduler':scheduler}</call>
+      <script>clients = STAXResult </script>
       
       <!--==== Run clients only if no errors occured before   ===========-->
       <if expr="ERR_NUM[0] == 0">
@@ -179,7 +175,7 @@
           <call function="'writeStartTagClient'">
           {
             'client' : client,
-            'fileFd' : LOG_MAIN_FD 
+            'fileFd' : fileFd 
           }
           </call>
           
@@ -260,7 +256,7 @@
           
           <!-- == Write tag for xml report -->
           <call function="'writeEndTagClient'">
-          { 'fileFd'    : LOG_MAIN_FD }
+          { 'fileFd'    : fileFd }
           </call>
           <!--==== close logfile ====-->
           <script>

--
Gitblit v1.10.0