Skip to content

Commit

Permalink
Running R tests multiple times failed due to pre-exiting "spark-wareh…
Browse files Browse the repository at this point in the history
…ouse" / "metastore_db"
  • Loading branch information
HyukjinKwon committed Jun 17, 2017
1 parent 5d35d5c commit ac55645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pkg/tests/run-all.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ if (.Platform$OS.type == "windows") {
install.spark()

sparkRDir <- file.path(Sys.getenv("SPARK_HOME"), "R")
sparkRFilesBefore <- list.files(path = sparkRDir, all.files = TRUE)
sparkRWhitelistSQLDirs <- c("spark-warehouse", "metastore_db")
invisible(lapply(sparkRWhitelistSQLDirs,
function(x) { unlink(file.path(sparkRDir, x), recursive = TRUE, force = TRUE)}))
sparkRFilesBefore <- list.files(path = sparkRDir, all.files = TRUE)

sparkRTestMaster <- "local[1]"
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
Expand Down

0 comments on commit ac55645

Please sign in to comment.