Skip to content

Commit

Permalink
use unique sandbox path for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Nov 19, 2024
1 parent 52ecf5d commit 2f1be6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/helper-setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ renv_tests_setup_envvars <- function(scope = parent.frame()) {
root <- renv_scope_tempfile("renv-root-", scope = scope)
ensure_directory(root)

# set up sandbox directory
sandbox <- file.path(root, "sandbox")
ensure_directory(sandbox)

renv_scope_envvars(
RENV_AUTOLOAD_ENABLED = FALSE,
RENV_CONFIG_LOCKING_ENABLED = FALSE,
Expand All @@ -57,6 +61,7 @@ renv_tests_setup_envvars <- function(scope = parent.frame()) {
RENV_PATHS_LOCAL = NULL,
RENV_PATHS_LOCKFILE = NULL,
RENV_PATHS_RENV = NULL,
RENV_PATHS_SANDBOX = sandbox,
RENV_WATCHDOG_ENABLED = FALSE,
RENV_WATCHDOG_DEBUG = FALSE,
scope = scope
Expand Down

0 comments on commit 2f1be6a

Please sign in to comment.