diff --git testutils/ptest2/src/main/resources/source-prep.vm testutils/ptest2/src/main/resources/source-prep.vm index c7e06b9316d2780bd877a6d8e1c29818fc7fbe03..4215f438711d47fc5e88a6c8051999cdcb89faa9 100644 --- testutils/ptest2/src/main/resources/source-prep.vm +++ testutils/ptest2/src/main/resources/source-prep.vm @@ -125,4 +125,9 @@ cd $workingDir/ fi date +"%Y-%m-%d %T.%3N" ) 2>&1 | tee $logDir/source-prep.txt -exit ${PIPESTATUS[0]} +result=${PIPESTATUS[0]} +if [ ${result} -ne 0 ] +then + rm -rf yetus_${buildTag} +fi +exit ${result}