diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2010-11-02 12:51:22 -0700 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2010-11-02 12:51:22 -0700 |
commit | 6f93baa463bba3a2954738e7ae2d51e93d4bf9d9 (patch) | |
tree | 061908341f5a66353151724911df8725ebd1618b | |
parent | dd7c5d8e34c743b9766542f0645745de12b0ac26 (diff) | |
download | spark-6f93baa463bba3a2954738e7ae2d51e93d4bf9d9.tar.gz spark-6f93baa463bba3a2954738e7ae2d51e93d4bf9d9.tar.bz2 spark-6f93baa463bba3a2954738e7ae2d51e93d4bf9d9.zip |
'Running on Mesos' test is now only run when MESOS_HOME is set
-rw-r--r-- | src/test/spark/repl/ReplSuite.scala | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/spark/repl/ReplSuite.scala b/src/test/spark/repl/ReplSuite.scala index 9f41c77ead..8b38cde85f 100644 --- a/src/test/spark/repl/ReplSuite.scala +++ b/src/test/spark/repl/ReplSuite.scala @@ -102,8 +102,8 @@ class ReplSuite extends FunSuite { assertContains("res2: Array[Int] = Array(5, 0, 0, 0, 0)", output) } - test ("running on Mesos") { - if (System.getenv("MESOS_HOME") != null) { + if (System.getenv("MESOS_HOME") != null) { + test ("running on Mesos") { val output = runInterpreter("localquiet", """ var v = 7 def getV() = v @@ -122,8 +122,6 @@ class ReplSuite extends FunSuite { assertContains("res1: Int = 100", output) assertContains("res2: Array[Int] = Array(0, 0, 0, 0, 0)", output) assertContains("res4: Array[Int] = Array(0, 0, 0, 0, 0)", output) - } else { - info("Skipping \"running on Mesos\" test because MESOS_HOME is not set"); } } } |