Skip to content

Commit ba0105c

Browse files
committed
2stage testing logfile keeping
1 parent cee54bd commit ba0105c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MC/run/ANCHOR/tests/test_looper.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ for i in "${!headers[@]}"; do
4040
headers[$i]=$(echo "${headers[$i]}" | sed -E 's/#?%\{//;s/\}//g')
4141
done
4242

43+
TOPWORKDIR=""
44+
4345
# Read and process each subsequent line
4446
{
4547
read # Skip the header line
@@ -160,6 +162,8 @@ for s in submit*.sh; do
160162
if [[ -z ${WORKFLOWS_FOUND} || -z ${AODS_FOUND} ]]; then
161163
echo "❌ Missing files for case $s: Check here for logs ${urls[${s}]}"
162164
FINAL_SUCCESS=1 # mark as failure
165+
# also upload log file to AliEn for later inspection
166+
alien.py cp file:./log_${s} alien:~/${TOPWORKDIR}
163167
else
164168
echo "✅ Files found in $s"
165169
fi

0 commit comments

Comments
 (0)