Skip to content
Snippets Groups Projects
Commit 19a03cb4 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed typo in test script an limited the list of problematic files to 10.

parent 7bd0c7e2
Branches
Tags
No related merge requests found
......@@ -78,7 +78,10 @@ done | xargs --max-procs=${NB_PROCS} -iTEST_FILE_NAME xrdcp --silent /tmp/testfi
echo Done.
eos root://${EOSINSTANCE} ls ${EOS_DIR} | egrep "${TEST_FILE_NAME_BASE}[0-9]+" | sed -e 's/$/ copied/' > ${STATUS_FILE=}
eos root://${EOSINSTANCE} ls ${EOS_DIR} | egrep "${TEST_FILE_NAME_BASE}[0-9]+" | sed -e 's/$/ copied/' > ${STATUS_FILE}
echo status before
head ${STATUS_FILE}
echo "Waiting for files to be on tape:"
SECONDS_PASSED=0
......@@ -99,7 +102,10 @@ while test 0 != $(grep -c copied$ ${STATUS_FILE}); do
grep copied$ ${STATUS_FILE} | sed -e 's/ .*$//' | sed -e "s;^;file info ${EOS_DIR}/;" > ${EOS_BATCHFILE}
# Updating all files statuses
eos root://${EOSINSTANCE} ls -y ${EOS_DIR} | head
eos root://${EOSINSTANCE} ls -y ${EOS_DIR} | sed -e 's/^\(d.::t.\).*\(test[0-9]\+\)$/\2 \1/;s/d[^0]::t[^0]/archived/;s/d[^0]::t0/copied/;s/d0::t0/error/;s/d0::t[^0]/tapeonly/' > ${STATUS_FILE}
echo status in loop
head ${STATUS_FILE}
done
......@@ -176,7 +182,7 @@ test -z $TAILPID || kill ${TAILPID}
test ${RETRIEVED} = ${NB_FILES} && exit 0
echo "ERROR there were some lost files during the archive/retrieve test with ${NB_FILES} files:"
grep -v retrieved ${STATUS_FILE} | sed -e "s;^;${EOS_DIR}/;"
echo "ERROR there were some lost files during the archive/retrieve test with ${NB_FILES} files (first 10):"
grep -v retrieved ${STATUS_FILE} | sed -e "s;^;${EOS_DIR}/;" | head -10
exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment