Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't copy mode to temp file #188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/testthat/test-build.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ test_that("package tarball binary build errors", {
test_that("warnings can be turned into errors", {
src <- withr::local_tempdir()
dest <- withr::local_tempdir()
file.copy(test_path("testDummy"), src, recursive = TRUE)
file.copy(test_path("testDummy"), src, recursive = TRUE, copy.mode = FALSE)

withr::local_options(pkg.build_stop_for_warnings = TRUE)
expect_silent(
Expand Down Expand Up @@ -235,7 +235,7 @@ test_that("Config/build/clean-inst-doc TRUE", {
if (Sys.which("pandoc") == "") skip("No pandoc")
src <- withr::local_tempdir()
dest <- withr::local_tempdir()
file.copy(test_path("testInstDoc"), src, recursive = TRUE)
file.copy(test_path("testInstDoc"), src, recursive = TRUE, copy.mode = FALSE)

desc::desc_set(
"Config/build/clean-inst-doc" = "TRUE",
Expand All @@ -262,7 +262,7 @@ test_that("Config/build/clean-inst-doc TRUE", {
test_that("bootstrap.R runs on build if present", {
src <- withr::local_tempdir()
dest <- withr::local_tempdir()
file.copy(test_path("testDummy"), src, recursive = TRUE)
file.copy(test_path("testDummy"), src, recursive = TRUE, copy.mode = FALSE)

writeLines(
c(
Expand Down Expand Up @@ -295,7 +295,7 @@ test_that("bootstrap.R runs on build if present", {
test_that("bootstrap.R does not run if Config/build/bootstrap is not TRUE", {
src <- withr::local_tempdir()
dest <- withr::local_tempdir()
file.copy(test_path("testDummy"), src, recursive = TRUE)
file.copy(test_path("testDummy"), src, recursive = TRUE, copy.mode = FALSE)

writeLines(
c(
Expand Down Expand Up @@ -323,7 +323,7 @@ test_that("bootstrap.R does not run if Config/build/bootstrap is not TRUE", {
test_that("bootstrap.R can output stdout, stderr, and warnings when run", {
src <- withr::local_tempdir()
dest <- withr::local_tempdir()
file.copy(test_path("testDummy"), src, recursive = TRUE)
file.copy(test_path("testDummy"), src, recursive = TRUE, copy.mode = FALSE)

writeLines(
c(
Expand Down
Loading