Skip to content

Commit

Permalink
fix: skip CRAN failing tests on macos x86_64
Browse files Browse the repository at this point in the history
  • Loading branch information
statnmap committed Jan 16, 2025
1 parent ca6a33e commit 2cd8123
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev/flat_create_flat.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ output: html_document
editor_options:
chunk_output_type: console
inflate:
state: deprecated?
state: active
---

```{r development, include=FALSE}
Expand Down Expand Up @@ -632,6 +632,7 @@ for (template in all_templates) {
expect_true(sum(grepl(paste0("fusen::inflate\\(flat_file = \"dev/flat_", main_flat_file_name, ".Rmd\""), flat_lines)) == 1)
withr::with_dir(dummypackage4, {
skip_on_os(os = "mac", arch = "x86_64")
inflate_command <- paste0("fusen::inflate(flat_file = \"dev/flat_", main_flat_file_name, ".Rmd\", open_vignette = FALSE, check = FALSE)")
expect_error(suppressMessages(eval(parse(text = inflate_command))), regexp = NA)
})
Expand All @@ -640,6 +641,7 @@ for (template in all_templates) {
# Now try to inflates a second time
test_that("flat file inflates a second time", {
withr::with_dir(dummypackage4, {
skip_on_os(os = "mac", arch = "x86_64")
inflate_command_second <- paste0("fusen::inflate(flat_file = \"dev/flat_", main_flat_file_name, ".Rmd\", open_vignette = FALSE, check = FALSE, overwrite = TRUE)")
expect_error(suppressMessages(eval(parse(text = inflate_command_second))), regexp = NA)
})
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-add_flat_template.R
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ for (template in all_templates) {
expect_true(sum(grepl(paste0("fusen::inflate\\(flat_file = \"dev/flat_", main_flat_file_name, ".Rmd\""), flat_lines)) == 1)

withr::with_dir(dummypackage4, {
skip_on_os(os = "mac", arch = "x86_64")
inflate_command <- paste0("fusen::inflate(flat_file = \"dev/flat_", main_flat_file_name, ".Rmd\", open_vignette = FALSE, check = FALSE)")
expect_error(suppressMessages(eval(parse(text = inflate_command))), regexp = NA)
})
Expand All @@ -345,6 +346,7 @@ for (template in all_templates) {
# Now try to inflates a second time
test_that("flat file inflates a second time", {
withr::with_dir(dummypackage4, {
skip_on_os(os = "mac", arch = "x86_64")
inflate_command_second <- paste0("fusen::inflate(flat_file = \"dev/flat_", main_flat_file_name, ".Rmd\", open_vignette = FALSE, check = FALSE, overwrite = TRUE)")
expect_error(suppressMessages(eval(parse(text = inflate_command_second))), regexp = NA)
})
Expand Down

0 comments on commit 2cd8123

Please sign in to comment.