Skip to content

Commit 278ba7a

Browse files
felixcheungFelix Cheung
authored andcommitted
[TEST][SPARKR][CORE] Fix broken SparkSubmitSuite
## What changes were proposed in this pull request? Fix test file path. This is broken in #18264 and undetected since R-only changes don't build core and subsequent post-commit with the change built fine (again because it wasn't building core) actually appveyor builds everything but it's not running scala suites ... ## How was this patch tested? jenkins srowen gatorsmile Author: Felix Cheung <[email protected]> Closes #18283 from felixcheung/rsubmitsuite.
1 parent 2639c3e commit 278ba7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/test/scala/org/apache/spark/deploy/SparkSubmitSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@ class SparkSubmitSuite
505505
assume(RUtils.isSparkRInstalled, "SparkR is not installed in this build.")
506506
val main = MavenCoordinate("my.great.lib", "mylib", "0.1")
507507
val sparkHome = sys.props.getOrElse("spark.test.home", fail("spark.test.home is not set!"))
508-
val rScriptDir =
509-
Seq(sparkHome, "R", "pkg", "inst", "tests", "packageInAJarTest.R").mkString(File.separator)
508+
val rScriptDir = Seq(
509+
sparkHome, "R", "pkg", "tests", "fulltests", "packageInAJarTest.R").mkString(File.separator)
510510
assert(new File(rScriptDir).exists)
511511
IvyTestUtils.withRepository(main, None, None, withR = true) { repo =>
512512
val args = Seq(
@@ -527,7 +527,7 @@ class SparkSubmitSuite
527527
// Check if the SparkR package is installed
528528
assume(RUtils.isSparkRInstalled, "SparkR is not installed in this build.")
529529
val rScriptDir =
530-
Seq(sparkHome, "R", "pkg", "inst", "tests", "testthat", "jarTest.R").mkString(File.separator)
530+
Seq(sparkHome, "R", "pkg", "tests", "fulltests", "jarTest.R").mkString(File.separator)
531531
assert(new File(rScriptDir).exists)
532532

533533
// compile a small jar containing a class that will be called from R code.

0 commit comments

Comments
 (0)