Updated Branches: refs/heads/master 3d4ad84b6 -> dd63c548c
Use SPARK_HOME instead of user.dir in ExecutorRunnerTest Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/dd63c548 Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/dd63c548 Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/dd63c548 Branch: refs/heads/master Commit: dd63c548c228d7775670e4664be18ebd1c62bed7 Parents: 3d4ad84 Author: Aaron Davidson <[email protected]> Authored: Fri Nov 8 12:51:05 2013 -0800 Committer: Aaron Davidson <[email protected]> Committed: Fri Nov 8 12:51:05 2013 -0800 ---------------------------------------------------------------------- .../scala/org/apache/spark/deploy/worker/ExecutorRunnerTest.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/dd63c548/core/src/test/scala/org/apache/spark/deploy/worker/ExecutorRunnerTest.scala ---------------------------------------------------------------------- diff --git a/core/src/test/scala/org/apache/spark/deploy/worker/ExecutorRunnerTest.scala b/core/src/test/scala/org/apache/spark/deploy/worker/ExecutorRunnerTest.scala index d433806..8f09541 100644 --- a/core/src/test/scala/org/apache/spark/deploy/worker/ExecutorRunnerTest.scala +++ b/core/src/test/scala/org/apache/spark/deploy/worker/ExecutorRunnerTest.scala @@ -5,10 +5,9 @@ import org.scalatest.FunSuite import org.apache.spark.deploy.{ExecutorState, Command, ApplicationDescription} class ExecutorRunnerTest extends FunSuite { - test("command includes appId") { def f(s:String) = new File(s) - val sparkHome = sys.props("user.dir") + val sparkHome = sys.env("SPARK_HOME") val appDesc = new ApplicationDescription("app name", 8, 500, Command("foo", Seq(),Map()), sparkHome, "appUiUrl") val appId = "12345-worker321-9876"
