Permalink
Browse files

Re-add the slash in-front of lua, add some null checking to kitten cl…

…ient
  • Loading branch information...
1 parent a1a5290 commit 8d1d956b71f8d41b3234191e3bf5f32313674b89 @jwills jwills committed Jul 2, 2012
@@ -93,11 +93,11 @@ public int handle(YarnClientService service) throws Exception {
}
}
- if (service.getFinalReport().getFinalApplicationStatus() == FinalApplicationStatus.SUCCEEDED) {
- return 0;
- } else {
+ ApplicationReport report = service.getFinalReport();
+ if (report == null || report.getFinalApplicationStatus() != FinalApplicationStatus.SUCCEEDED) {
return 1;
}
+ return 0;
}
public static void main(String[] args) throws Exception {
@@ -67,7 +67,7 @@ public static void tearDown() throws IOException {
@Test
public void testKittenShell() throws Exception {
- String config = "lua/distshell.lua";
+ String config = "/lua/distshell.lua";
// For the outputs
File tmpFile = File.createTempFile("distshell", ".txt");

0 comments on commit 8d1d956

Please sign in to comment.