Run test
if (os != "windows") {
term_bash(
dir = tmp,
overwrite = TRUE,
vars = c(GITHUB_PAT = "123456", TRAVIS_TOKEN = "123456")
)
}
#> Output file: /tmp/RtmptMhDKh/iuSQvJsT/.bashrc
#> Output file: /tmp/RtmptMhDKh/iuSQvJsT/.bash_aliases
#> Output file: /tmp/RtmptMhDKh/iuSQvJsT/.bash_profile
#> Output file: /tmp/RtmptMhDKh/iuSQvJsT/.bash_logout
if (os != "windows") {
test_that("warning", {
expect_warning(
term_bash(
dir = tmp,
overwrite = FALSE,
vars = c(GITHUB_PAT = "123456", TRAVIS_TOKEN = "123456")
)
)
})
}
if (os == "windows") {
test_that("windows", {
expect_error(
term_bash(
dir = tmp,
overwrite = FALSE,
vars = c(GITHUB_PAT = "123456", TRAVIS_TOKEN = "123456")
)
)
})
}
unlink(
c(
fn_bashrc,
fn_bash_aliases,
fn_bash_profile,
fn_bash_logout,
tmp
),
recursive = TRUE
)