Skip to content

Commit af7e236

Browse files
committed
Use the spark.test.home property suggested by vanzin
1 parent d366efc commit af7e236

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • resource-managers/kubernetes/integration-tests/src/test/scala/org/apache/spark/deploy/k8s/integrationtest

resource-managers/kubernetes/integration-tests/src/test/scala/org/apache/spark/deploy/k8s/integrationtest/KubernetesSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class KubernetesSuite extends SparkFunSuite
106106
val possible_spark_dirs = List(
107107
// If someone specified the tgz for the tests look at the extraction dir
108108
System.getProperty(CONFIG_KEY_UNPACK_DIR),
109-
// If otherwise use my working dir + 3 up
110-
new File(Paths.get(System.getProperty("user.dir")).toFile, ("../" * 3)).getAbsolutePath()
109+
// Try the spark test home
110+
sys.props("spark.test.home")
111111
)
112112
val sparkDirProp = possible_spark_dirs.filter(x =>
113113
new File(Paths.get(x).toFile, "bin/spark-submit").exists).headOption.getOrElse(null)

0 commit comments

Comments
 (0)