From d6025ba9973f42c8e462fe0799d7e34fa239d541 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Wed, 23 Apr 2008 15:09:05 +0000
Subject: [PATCH] avoid staf exception when clients object list is empty
---
opends/tests/system-tests/phases/main_run.xml | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/opends/tests/system-tests/phases/main_run.xml b/opends/tests/system-tests/phases/main_run.xml
index 25d5338..e75db42 100644
--- a/opends/tests/system-tests/phases/main_run.xml
+++ b/opends/tests/system-tests/phases/main_run.xml
@@ -353,8 +353,12 @@
- <!-- ============ scheduler ==================================== -->
- <if expr="runScheduler == 'true' and ERR_NUM_TOTAL == 0">
+ <!-- ============ SCHEDULER ==================================== -->
+ <!--== Get the enabled clients list from all modules ==-->
+ <call function="'getEnabledClients'">{'scheduler':scheduler}</call>
+ <script>clients = STAXResult </script>
+ <if expr="runScheduler == 'true' and ERR_NUM_TOTAL == 0
+ and len(clients) > 0">
<sequence>
<import machine="'%s' % (STAF_LOCAL_HOSTNAME)"
file="'%s/phases/scheduler/scheduler.xml' % (TESTS_DIR)"/>
--
Gitblit v1.10.0