From 127254f4a5936444c0f4b7f6d5ea7cb15e10ccc8 Mon Sep 17 00:00:00 2001 From: Giridharan Kesavan Date: Thu, 9 Jul 2009 08:10:18 +0000 Subject: [PATCH] HADOOP-6137. Fix project specific test-patch requirements git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@792440 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 +++ src/test/bin/test-patch.sh | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 8dcbcb97f7..b8705618eb 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -871,6 +871,9 @@ Trunk (unreleased changes) HADOOP-6131. A sysproperty should not be set unless the property is set on the ant command line in build.xml (hong tang via mahadev) + HADOOP-6137. Fix project specific test-patch requirements + (Giridharan Kesavan) + Release 0.20.1 - Unreleased INCOMPATIBLE CHANGES diff --git a/src/test/bin/test-patch.sh b/src/test/bin/test-patch.sh index f3934fdc39..77adbe51fc 100755 --- a/src/test/bin/test-patch.sh +++ b/src/test/bin/test-patch.sh @@ -473,10 +473,14 @@ runCoreTests () { echo "" ### Kill any rogue build processes from the last attempt - $PS -auxwww | $GREP HadoopPatchProcess | /usr/bin/nawk '{print $2}' | /usr/bin/xargs -t -I {} /usr/bin/kill -9 {} > /dev/null + $PS auxwww | $GREP HadoopPatchProcess | /usr/bin/nawk '{print $2}' | /usr/bin/xargs -t -I {} /usr/bin/kill -9 {} > /dev/null + PreTestTarget="" + if [[ $defect == MAPREDUCE-* ]] ; then + PreTestTarget="create-c++-configure" + fi - echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home=$JAVA5_HOME create-c++-configure test-core" - $ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home=$JAVA5_HOME create-c++-configure test-core + echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home=$JAVA5_HOME $PreTestTarget test-core" + $ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home=$JAVA5_HOME $PreTestTarget test-core if [[ $? != 0 ]] ; then JIRA_COMMENT="$JIRA_COMMENT