Commit 478344a3 authored by Nicolo Magini's avatar Nicolo Magini
Browse files

Add debugging output to cp implementation, to debug Sav #132813

parent c897fa03
......@@ -81,6 +81,8 @@ class CPImpl(StageOutImpl):
result += " %s " % options
result += " %s " % sourcePFN
result += " %s " % targetPFN
result += "; echo \"Exit code of cp is $? \" "
result += "; DEST_LS=`/bin/ls -l %s`; echo \"Result of ls -l is $DEST_LS\" " % targetPFN
result += "; DEST_SIZE=`/bin/ls -l %s | awk '{print $5}'` ; if [ $DEST_SIZE ] && [ '%s' -eq $DEST_SIZE ]; then exit 0; else echo \"Error: Size Mismatch between local and SE\"; exit 60311 ; fi " % (targetPFN,original_size)
print result
return result
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment