Github user mgummelt commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14167#discussion_r71047287
  
    --- Diff: 
core/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosClusterSchedulerSuite.scala
 ---
    @@ -172,4 +187,28 @@ class MesosClusterSchedulerSuite extends SparkFunSuite 
with LocalSparkContext wi
           assert(escape(s"onlywrap${char}this") === 
wrapped(s"onlywrap${char}this"))
         })
       }
    +
    +  test("supports spark.mesos.driverEnv.*") {
    +    setScheduler()
    +
    +    val mem = 1000
    +    val cpu = 1
    +
    +    val response = scheduler.submitDriver(
    +      new MesosDriverDescription("d1", "jar", mem, cpu, true,
    +        command,
    +        Map("spark.mesos.executor.home" -> "test",
    +          "spark.app.name" -> "test",
    +          "spark.mesos.driverEnv.TEST_ENV" -> "TEST_VAL"),
    +        "s1",
    +        new Date()))
    +    assert(response.success)
    +
    +    val offer = Utils.createOffer("o1", "s1", mem, cpu)
    +    scheduler.resourceOffers(driver, List(offer).asJava)
    +    val tasks = Utils.verifyTaskLaunched(driver, "o1")
    +    val env = 
tasks(0).getCommand.getEnvironment.getVariablesList.asScala.map(v =>
    --- End diff --
    
    done


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to