diff --git a/CHANGES.txt b/CHANGES.txt index 36cf7ab5ea1..71d9ee0c701 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -859,6 +859,9 @@ Trunk (unreleased changes) HADOOP-6096. Fix Eclipse project and classpath files following project split. (tomwhite) + HADOOP-6122. The great than operator in test-patch.sh should be "-gt" but + not ">". (szetszwo) + Release 0.20.1 - Unreleased INCOMPATIBLE CHANGES diff --git a/src/test/bin/test-patch.sh b/src/test/bin/test-patch.sh index 95d8dd39158..f3934fdc397 100755 --- a/src/test/bin/test-patch.sh +++ b/src/test/bin/test-patch.sh @@ -316,7 +316,7 @@ checkJavacWarnings () { patchJavacWarnings=`$GREP -o '\[javac\] [0-9]* warning' $PATCH_DIR/patchJavacWarnings.txt | awk '{total += $2} END {print total}'` echo "There appear to be $trunkJavacWarnings javac compiler warnings before the patch and $patchJavacWarnings javac compiler warnings after applying the patch." if [[ $patchJavacWarnings != "" && $trunkJavacWarnings != "" ]] ; then - if [[ $patchJavacWarnings > $trunkJavacWarnings ]] ; then + if [[ $patchJavacWarnings -gt $trunkJavacWarnings ]] ; then JIRA_COMMENT="$JIRA_COMMENT -1 javac. The applied patch generated $patchJavacWarnings javac compiler warnings (more than the trunk's current $trunkJavacWarnings warnings)." @@ -353,7 +353,7 @@ checkReleaseAuditWarnings () { echo "" echo "There appear to be $trunkReleaseAuditWarnings release audit warnings before the patch and $patchReleaseAuditWarnings release audit warnings after applying the patch." if [[ $patchReleaseAuditWarnings != "" && $trunkReleaseAuditWarnings != "" ]] ; then - if [[ $patchReleaseAuditWarnings > $trunkReleaseAuditWarnings ]] ; then + if [[ $patchReleaseAuditWarnings -gt $trunkReleaseAuditWarnings ]] ; then JIRA_COMMENT="$JIRA_COMMENT -1 release audit. The applied patch generated $patchReleaseAuditWarnings release audit warnings (more than the trunk's current $trunkReleaseAuditWarnings warnings)."