From e08afd7823bd5ea3d13982ac8845e3aebeac6bf6 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
---
opendj-sdk/opends/tests/system-tests/phases/shared/functions/opendstools.xml | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/opendj-sdk/opends/tests/system-tests/phases/shared/functions/opendstools.xml b/opendj-sdk/opends/tests/system-tests/phases/shared/functions/opendstools.xml
index ee3c0d2..c69f501 100644
--- a/opendj-sdk/opends/tests/system-tests/phases/shared/functions/opendstools.xml
+++ b/opendj-sdk/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