HADOOP-7744. Ensure failed tests exit with proper error code. Contributed by Jonathan Eagles.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1186548 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7a2744c458
commit
b91900b2c2
|
@ -736,6 +736,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
|
||||
|
|
|
@ -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[]){
|
||||
|
|
Loading…
Reference in New Issue