Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
6f93baa4
Commit
6f93baa4
authored
14 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Patches
Plain Diff
'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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/spark/repl/ReplSuite.scala
+2
-4
2 additions, 4 deletions
src/test/spark/repl/ReplSuite.scala
with
2 additions
and
4 deletions
src/test/spark/repl/ReplSuite.scala
+
2
−
4
View file @
6f93baa4
...
@@ -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"
);
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment