You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by ni...@apache.org on 2010/11/09 19:57:56 UTC
svn commit: r1033155 - in /hadoop/zookeeper/trunk/src/java/test/bin:
test-patch.properties test-patch.sh
Author: nigel
Date: Tue Nov 9 18:57:56 2010
New Revision: 1033155
URL: http://svn.apache.org/viewvc?rev=1033155&view=rev
Log:
ZOOKEEPER-926. Fork Hadoop common's test-patch.sh and modify for Zookeeper. Update allowed number of warnings.
Modified:
hadoop/zookeeper/trunk/src/java/test/bin/test-patch.properties
hadoop/zookeeper/trunk/src/java/test/bin/test-patch.sh
Modified: hadoop/zookeeper/trunk/src/java/test/bin/test-patch.properties
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/test/bin/test-patch.properties?rev=1033155&r1=1033154&r2=1033155&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/test/bin/test-patch.properties (original)
+++ hadoop/zookeeper/trunk/src/java/test/bin/test-patch.properties Tue Nov 9 18:57:56 2010
@@ -13,6 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-OK_RELEASEAUDIT_WARNINGS=0
-OK_FINDBUGS_WARNINGS=0
+OK_RELEASEAUDIT_WARNINGS=24
+OK_FINDBUGS_WARNINGS=1
OK_JAVADOC_WARNINGS=0
Modified: hadoop/zookeeper/trunk/src/java/test/bin/test-patch.sh
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/test/bin/test-patch.sh?rev=1033155&r1=1033154&r2=1033155&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/test/bin/test-patch.sh (original)
+++ hadoop/zookeeper/trunk/src/java/test/bin/test-patch.sh Tue Nov 9 18:57:56 2010
@@ -519,36 +519,6 @@ runContribTests () {
}
###############################################################################
-### Run the inject-system-faults target
-checkInjectSystemFaults () {
- echo ""
- echo ""
- echo "======================================================================"
- echo "======================================================================"
- echo " Checking the integrity of system test framework code."
- echo "======================================================================"
- echo "======================================================================"
- echo ""
- echo ""
-
- ### Kill any rogue build processes from the last attempt
- $PS auxwww | $GREP ZookeeperPatchProcess | /usr/bin/nawk '{print $2}' | /usr/bin/xargs -t -I {} /bin/kill -9 {} > /dev/null
-
- echo "$ANT_HOME/bin/ant -DZookeeperPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home=$JAVA5_HOME inject-system-faults"
- $ANT_HOME/bin/ant -DZookeeperPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=yes -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME -Djava5.home=$JAVA5_HOME inject-system-faults
- if [[ $? != 0 ]] ; then
- JIRA_COMMENT="$JIRA_COMMENT
-
- -1 system test framework. The patch failed system test framework compile."
- return 1
- fi
- JIRA_COMMENT="$JIRA_COMMENT
-
- +1 system test framework. The patch passed system test framework compile."
- return 0
-}
-
-###############################################################################
### Submit a comment to the defect's Jira
submitJiraComment () {
local result=$1
@@ -659,8 +629,6 @@ if [[ $HUDSON == "true" ]] ; then
runContribTests
(( RESULT = RESULT + $? ))
fi
-checkInjectSystemFaults
-(( RESULT = RESULT + $? ))
JIRA_COMMENT_FOOTER="Test results: $BUILD_URL/testReport/
$JIRA_COMMENT_FOOTER"