From 2b5dcd96c914a84a130237de17b43184670c4e52 Mon Sep 17 00:00:00 2001
From: al_xipe <al_xipe@localhost>
Date: Sun, 26 Aug 2007 00:50:01 +0000
Subject: [PATCH] schematokens fix for replication tests
---
opendj-sdk/opends/tests/functional-tests/testcases/replication/binarycopy/binarycopy.xml | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/opendj-sdk/opends/tests/functional-tests/testcases/replication/binarycopy/binarycopy.xml b/opendj-sdk/opends/tests/functional-tests/testcases/replication/binarycopy/binarycopy.xml
index affe125..67f5af5 100644
--- a/opendj-sdk/opends/tests/functional-tests/testcases/replication/binarycopy/binarycopy.xml
+++ b/opendj-sdk/opends/tests/functional-tests/testcases/replication/binarycopy/binarycopy.xml
@@ -110,12 +110,14 @@
<!-- Copy backup to "consumer" servers and restore it -->
<paralleliterate var="consumer" in="consumerList">
<sequence>
- <call function="'copyFile'">
- { 'srcfile' : '%s/config/schematokens.dat' % dsPath,
- 'destfile' : '%s/%s/config/schematokens.dat' % (consumer.getDir(),OPENDSNAME),
- 'remotehost' : consumer.getHostname()
- }
- </call>
+ <if expr="os.path.exists('%s/config/schematokens.dat' % dsPath)" >
+ <call function="'copyFile'">
+ { 'srcfile' : '%s/config/schematokens.dat' % dsPath,
+ 'destfile' : '%s/%s/config/schematokens.dat' % (consumer.getDir(),OPENDSNAME),
+ 'remotehost' : consumer.getHostname()
+ }
+ </call>
+ </if>
<call function="'CopyFolderByExtension'">
{ 'location' : masterHost,
'remotehost' : consumer.getHostname(),
@@ -237,12 +239,14 @@
<!-- Copy backup to "consumer" servers and restore it -->
<paralleliterate var="consumer" in="consumerList">
<sequence>
- <call function="'copyFile'">
- { 'srcfile' : '%s/config/schematokens.dat' % dsPath,
- 'destfile' : '%s/%s/config/schematokens.dat' % (consumer.getDir(),OPENDSNAME),
- 'remotehost' : consumer.getHostname()
- }
- </call>
+ <if expr="os.path.exists('%s/config/schematokens.dat' % dsPath)">
+ <call function="'copyFile'">
+ { 'srcfile' : '%s/config/schematokens.dat' % dsPath,
+ 'destfile' : '%s/%s/config/schematokens.dat' % (consumer.getDir(),OPENDSNAME),
+ 'remotehost' : consumer.getHostname()
+ }
+ </call>
+ </if>
<call function="'CopyFolderByExtension'">
{ 'location' : masterHost,
'remotehost' : consumer.getHostname(),
--
Gitblit v1.10.0