Skip to content
Snippets Groups Projects
Commit dd63c548 authored by Aaron Davidson's avatar Aaron Davidson
Browse files

Use SPARK_HOME instead of user.dir in ExecutorRunnerTest

parent 3d4ad84b
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment