From df8562c21e51b195f87b54ce978d63d48510e89a Mon Sep 17 00:00:00 2001
From: Gary Williams <gary.williams@forgerock.com>
Date: Wed, 24 Oct 2012 12:16:09 +0000
Subject: [PATCH] When copying test files to remote host make sure folder is created remotely

---
 opends/tests/staf-tests/shared/functions/stafcmd.xml |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/opends/tests/staf-tests/shared/functions/stafcmd.xml b/opends/tests/staf-tests/shared/functions/stafcmd.xml
index 03efe61..9329102 100755
--- a/opends/tests/staf-tests/shared/functions/stafcmd.xml
+++ b/opends/tests/staf-tests/shared/functions/stafcmd.xml
@@ -24,7 +24,7 @@
  ! CDDL HEADER END
  !
  !      Copyright 2007-2009 Sun Microsystems, Inc.
- !      Portions Copyright 2011 ForgeRock AS.
+ !      Portions Copyright 2011-2012 ForgeRock AS.
  ! -->
 <stax>
   <function name="copyFile">
@@ -66,9 +66,13 @@
       <script>
         destfolder = os.path.dirname(destfile)
       </script>
-      
+
+      <message>
+        'Checking for folder %s.' % destfolder
+      </message>
+
       <call function="'createFolder'">
-        { 'location'   : location,
+        { 'location'   : remotehost,
           'foldername' : '%s' % destfolder
         }
       </call>      
@@ -483,6 +487,10 @@
 
     <sequence>
 
+      <message>
+        'Creating folder %s. on %s' % (foldername,location)
+      </message>
+
       <stafcmd name="'STAF Command: Create Folder'">
         <location>'%s' % location</location>
         <service>'fs'</service>

--
Gitblit v1.10.0