From 6f93baa463bba3a2954738e7ae2d51e93d4bf9d9 Mon Sep 17 00:00:00 2001 From: Matei Zaharia Date: Tue, 2 Nov 2010 12:51:22 -0700 Subject: 'Running on Mesos' test is now only run when MESOS_HOME is set --- src/test/spark/repl/ReplSuite.scala | 6 ++---- 1 file 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"); } } } -- cgit v1.2.3