HDFS-2445. Ensure failed tests exit with proper error code. Contributed by Jonathan Eagles.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1186550 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Arun Murthy 2011-10-19 22:51:51 +00:00
parent b91900b2c2
commit a6cc9bafa8
2 changed files with 8 additions and 2 deletions

View File

@ -1251,6 +1251,9 @@ Release 0.23.0 - Unreleased
HDFS-2172. Address findbugs and javadoc warnings in HDFS-1073 branch.
(todd)
HDFS-2445. Ensure failed tests exit with proper error code. (Jonathan
Eagles via acmurthy)
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -43,11 +43,14 @@ public class HdfsTestDriver {
}
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[]){