Skip to content
Snippets Groups Projects
Commit 6f93baa4 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

'Running on Mesos' test is now only run when MESOS_HOME is set

parent dd7c5d8e
No related branches found
No related tags found
No related merge requests found
...@@ -102,8 +102,8 @@ class ReplSuite extends FunSuite { ...@@ -102,8 +102,8 @@ class ReplSuite extends FunSuite {
assertContains("res2: Array[Int] = Array(5, 0, 0, 0, 0)", output) 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", """ val output = runInterpreter("localquiet", """
var v = 7 var v = 7
def getV() = v def getV() = v
...@@ -122,8 +122,6 @@ class ReplSuite extends FunSuite { ...@@ -122,8 +122,6 @@ class ReplSuite extends FunSuite {
assertContains("res1: Int = 100", output) assertContains("res1: Int = 100", output)
assertContains("res2: Array[Int] = Array(0, 0, 0, 0, 0)", output) assertContains("res2: Array[Int] = Array(0, 0, 0, 0, 0)", output)
assertContains("res4: 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");
} }
} }
} }
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