summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testautomation/global/tools/includes/required/t_files.inc13
1 files changed, 8 insertions, 5 deletions
diff --git a/testautomation/global/tools/includes/required/t_files.inc b/testautomation/global/tools/includes/required/t_files.inc
index 585aa3c75e5d..65969e0b74a7 100644
--- a/testautomation/global/tools/includes/required/t_files.inc
+++ b/testautomation/global/tools/includes/required/t_files.inc
@@ -623,17 +623,20 @@ function hFileOpenLocally( byVal sSourcePath as string ) as boolean
' Find out what the name of the target file is going to be
sTargetPath = hFileGetLocalPath( sSourcePath ) ' The path + file
- ' Copy the file from anywhere to the local user directory if it does not
+ ' For debugging purposes set global variable gVerbose to TRUE
+ if ( gVerbose ) then
+ printlog( CFN & "Copying file" )
+ printlog( CFN & "From: " & sSourcePath )
+ printlog( CFN & "To..: " & sTargetPath )
+ endif
+
+ ' Copy the file from anywhere to the local user directory if it does not
' exist. This behavior was discussed on IRC
if ( FileExists( sTargetPath ) ) then
'printlog( CFN & "Re-using existing local copy of workfile" )
warnlog( CFN & "Target file exists, it has not been deleted by prior test" )
endif
- printlog( CFN & "Copying file" )
- printlog( CFN & "From: " & sSourcePath )
- printlog( CFN & "To..: " & sTargetPath )
-
FileCopy( sSourcePath, sTargetPath )
' Verify that the file has been created. return an empty string and warn