From 8029db4b9b4d14feec61d2f1598a8027e01301ed Mon Sep 17 00:00:00 2001
From: smaguin <smaguin@localhost>
Date: Fri, 02 May 2008 12:21:42 +0000
Subject: [PATCH] Copy data that are under the scenario directory

---
 opendj-sdk/opends/tests/system-tests/phases/main_run_lib.xml |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/tests/system-tests/phases/main_run_lib.xml b/opendj-sdk/opends/tests/system-tests/phases/main_run_lib.xml
index 6a68afd..4bb34d9 100644
--- a/opendj-sdk/opends/tests/system-tests/phases/main_run_lib.xml
+++ b/opendj-sdk/opends/tests/system-tests/phases/main_run_lib.xml
@@ -295,6 +295,30 @@
                     }
                     </call>
                   </if>
+                  <!-- Copy data that are under the scenario directory -->
+                  <call function="'isFile'">
+                  {
+                    'location' : STAXServiceMachine,
+                    'fileName' : '%s/scenario/%s/data' % \
+                                 (TESTS_DIR,DIR_NAME),
+                  }
+                  </call>
+                  <script>
+                    fileExist = STAXResult
+                  </script>
+                  <if expr="fileExist == TRUE">
+                    <call function="'copyFolder'">
+                    {
+                      'remoteHost'    : '%s%s' % (client.getHost(),DOMAIN[0]),
+                      'fromDirectory' : '%s/scenario/%s/data' % \
+                                        (TESTS_DIR,DIR_NAME),
+                      'toDirectory'   : '%s/scenario/%s/data' % \
+                                        (LOCAL_TESTS_DIR,DIR_NAME),
+                      'fileFd'        : NO_FILE
+                    }
+                    </call>
+                  </if>
+                  
                 </sequence>
               </if>
             </sequence>

--
Gitblit v1.10.0