Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
478344a3
Commit
478344a3
authored
Oct 10, 2012
by
Nicolo Magini
Browse files
Add debugging output to cp implementation, to debug Sav #132813
parent
c897fa03
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/MonteCarlo/cms-MC-test/lib/python2.6/site-packages/WMCore/Storage/Backends/CPImpl.py
View file @
478344a3
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment