Skip to content

Commit

Permalink
Fix related test case
Browse files Browse the repository at this point in the history
  • Loading branch information
renozhang committed Jun 29, 2016
1 parent db65931 commit 5687d78
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,6 @@ private object YarnClusterDriver extends Logging with Matchers {
}

private object YarnClasspathTest extends Logging {

var exitCode = 0

def error(m: String, ex: Throwable = null): Unit = {
logError(m, ex)
// scalastyle:off println
Expand Down Expand Up @@ -404,7 +401,6 @@ private object YarnClasspathTest extends Logging {
} finally {
sc.stop()
}
System.exit(exitCode)
}

private def readResource(resultPath: String): Unit = {
Expand All @@ -417,8 +413,6 @@ private object YarnClasspathTest extends Logging {
} catch {
case t: Throwable =>
error(s"loading test.resource to $resultPath", t)
// set the exit code if not yet set
exitCode = 2
} finally {
Files.write(result, new File(resultPath), StandardCharsets.UTF_8)
}
Expand Down

0 comments on commit 5687d78

Please sign in to comment.