Updated Branches:
  refs/heads/branch-0.8 a5916b981 -> ab4f44513

Use SPARK_HOME instead of user.dir in ExecutorRunnerTest

(cherry picked from commit dd63c548c228d7775670e4664be18ebd1c62bed7)
Signed-off-by: Reynold Xin <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/ab4f4451
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/ab4f4451
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/ab4f4451

Branch: refs/heads/branch-0.8
Commit: ab4f44513fcbe180a3c77c7a1c7a559fbbef656d
Parents: a5916b9
Author: Aaron Davidson <[email protected]>
Authored: Fri Nov 8 12:51:05 2013 -0800
Committer: Reynold Xin <[email protected]>
Committed: Fri Nov 8 18:06:23 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/ab4f4451/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"

Reply via email to