HADOOP-6250. Modify test-patch to delete copied XML files before running patch build. Contributed by Rahul Kumar Singh.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@815317 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hemanth Yamijala 2009-09-15 13:17:07 +00:00
parent 7612b78838
commit 78cff65f33
2 changed files with 15 additions and 0 deletions

View File

@ -1018,6 +1018,9 @@ Trunk (unreleased changes)
header would cause the reader to read the sync marker as a record. (Jay
Booth via cdouglas)
HADOOP-6250. Modify test-patch to delete copied XML files before running
patch build. (Rahul Kumar Singh via yhemanth)
Release 0.20.1 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -254,6 +254,15 @@ checkTests () {
return 0
}
cleanUpXml () {
cd $BASEDIR/conf
for file in `ls *.xml.template`
do
rm -f `basename $file .template`
done
cd $BASEDIR
}
###############################################################################
### Attempt to apply the patch
applyPatch () {
@ -682,6 +691,9 @@ checkAuthor
RESULT=$?
checkTests
if [[ $HUDSON == "true" ]] ; then
cleanUpXml
fi
(( RESULT = RESULT + $? ))
applyPatch
if [[ $? != 0 ]] ; then