From 7d135372efce4bf36d49b6739b8a3d7b1e25c053 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Tue, 22 Apr 2008 15:27:20 +0000
Subject: [PATCH] run checkOpendsReplication if more than one instance in the topology

---
 opends/tests/system-tests/phases/shared/functions/opendstools.xml |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/opends/tests/system-tests/phases/shared/functions/opendstools.xml b/opends/tests/system-tests/phases/shared/functions/opendstools.xml
index ee3c0d2..c69f501 100644
--- a/opends/tests/system-tests/phases/shared/functions/opendstools.xml
+++ b/opends/tests/system-tests/phases/shared/functions/opendstools.xml
@@ -34,7 +34,7 @@
       </function-arg-def>
       <function-arg-def name="instances" type="required">
         <function-arg-description>
-          instances list
+          opends instances objects list
         </function-arg-description>
       </function-arg-def>
       <function-arg-def name="suffix" type="required">
@@ -74,15 +74,19 @@
       
       
       <!--==== Check replication synchronization =========-->
-      <call function="'checkOpendsReplication'">
-          {
-            'instance'  : instance,
-            'instances' : instances,
-            'suffix'    : suffix,
-            'fileFd'    : fileFd
-          }
-      </call>
-      <script> _errNum += STAXResult </script>
+      <if expr="len(instances) > 1">
+        <sequence>
+          <call function="'checkOpendsReplication'">
+              {
+                'instance'  : instance,
+                'instances' : instances,
+                'suffix'    : suffix,
+                'fileFd'    : fileFd
+              }
+          </call>
+          <script> _errNum += STAXResult </script>
+        </sequence>
+      </if>
       
       
       <!--==== Compare entries =========-->

--
Gitblit v1.10.0