Skip to content

Commit dae1a98

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. (cherry picked from commit 278ba7a) Signed-off-by: Felix Cheung <[email protected]>
1 parent 48a843b commit dae1a98

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
@@ -485,8 +485,8 @@ class SparkSubmitSuite
485485
assume(RUtils.isSparkRInstalled, "SparkR is not installed in this build.")
486486
val main = MavenCoordinate("my.great.lib", "mylib", "0.1")
487487
val sparkHome = sys.props.getOrElse("spark.test.home", fail("spark.test.home is not set!"))
488-
val rScriptDir =
489-
Seq(sparkHome, "R", "pkg", "inst", "tests", "packageInAJarTest.R").mkString(File.separator)
488+
val rScriptDir = Seq(
489+
sparkHome, "R", "pkg", "tests", "fulltests", "packageInAJarTest.R").mkString(File.separator)
490490
assert(new File(rScriptDir).exists)
491491
IvyTestUtils.withRepository(main, None, None, withR = true) { repo =>
492492
val args = Seq(
@@ -507,7 +507,7 @@ class SparkSubmitSuite
507507
// Check if the SparkR package is installed
508508
assume(RUtils.isSparkRInstalled, "SparkR is not installed in this build.")
509509
val rScriptDir =
510-
Seq(sparkHome, "R", "pkg", "inst", "tests", "testthat", "jarTest.R").mkString(File.separator)
510+
Seq(sparkHome, "R", "pkg", "tests", "fulltests", "jarTest.R").mkString(File.separator)
511511
assert(new File(rScriptDir).exists)
512512

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

0 commit comments

Comments
 (0)