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:
parent
b91900b2c2
commit
a6cc9bafa8
@ -1251,6 +1251,9 @@ Release 0.23.0 - Unreleased
|
|||||||
HDFS-2172. Address findbugs and javadoc warnings in HDFS-1073 branch.
|
HDFS-2172. Address findbugs and javadoc warnings in HDFS-1073 branch.
|
||||||
(todd)
|
(todd)
|
||||||
|
|
||||||
|
HDFS-2445. Ensure failed tests exit with proper error code. (Jonathan
|
||||||
|
Eagles via acmurthy)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -43,11 +43,14 @@ public HdfsTestDriver(ProgramDriver pgd) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void run(String argv[]) {
|
public void run(String argv[]) {
|
||||||
|
int exitCode = -1;
|
||||||
try {
|
try {
|
||||||
pgd.driver(argv);
|
exitCode = pgd.driver(argv);
|
||||||
} catch(Throwable e) {
|
} catch(Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.exit(exitCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String argv[]){
|
public static void main(String argv[]){
|
||||||
|
Loading…
Reference in New Issue
Block a user