diff --git a/testutils/ptest2/src/main/resources/batch-exec.vm b/testutils/ptest2/src/main/resources/batch-exec.vm index c155851..ef05129 100644 --- a/testutils/ptest2/src/main/resources/batch-exec.vm +++ b/testutils/ptest2/src/main/resources/batch-exec.vm @@ -92,6 +92,9 @@ find ./ -type f -name hive.log -o -name spark.log | \ xargs -I {} sh -c 'f=$(basename {}); test -f ${logDir}/$f && f=$f-$(uuidgen); mv {} ${logDir}/$f' find ./ -type f -name 'TEST-*.xml' | \ xargs -I {} sh -c 'f=TEST-${batchName}-$(basename {}); test -f ${logDir}/$f && f=$f-$(uuidgen); mv {} ${logDir}/$f' +find ./ -path "*/spark/work" | \ + xargs -I {} sh -c 'mv {} ${logDir}/spark-log' + if [[ -f $logDir/.log ]] then mv $logDir/.log $logDir/dot.log