Merge -c 1186548 from trunk to branch-0.23 to complete fix for HADOOP-7744.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1186549 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Murthy 2011-10-19 22:49:24 +00:00
parent 797ee4c4d3
commit ca752e8dd8
2 changed files with 7 additions and 1 deletions

View File

@ -659,6 +659,9 @@ Release 0.23.0 - Unreleased
HADOOP-7755. Detect MapReduce PreCommit Trunk builds silently failing
when running test-patch.sh. (Jonathan Eagles via tomwhite)
HADOOP-7744. Ensure failed tests exit with proper error code. (Jonathan
Eagles via acmurthy)
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -50,11 +50,14 @@ public class CoreTestDriver {
}
public void run(String argv[]) {
int exitCode = -1;
try {
pgd.driver(argv);
exitCode = pgd.driver(argv);
} catch(Throwable e) {
e.printStackTrace();
}
System.exit(exitCode);
}
public static void main(String argv[]){