Browse Source

change call to system function in line with creator style

master
Ralf Herold 6 years ago
parent
commit
11f32b06d8
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 8
      tests/testthat/test-xattrs.R

8
tests/testthat/test-xattrs.R

@ -11,8 +11,8 @@ test_that("we can do something", {
# setting attribute using respective OS tool and reading
#
if(grepl("darwin", utils::sessionInfo()$platform)) {
system(paste0("xattr -w 'is.rud.setting' 'another attribute' ", tf), ignore.stdout = TRUE)
sys::exec_internal("xattr", arg = c("-w", ",is.rud.setting", "another attribute", tf), error = FALSE)
expect_true(has_xattrs(tf))
expect_identical(list_xattrs(tf), "is.rud.setting")
expect_identical(get_xattr(tf, "is.rud.setting"), "another attribute")
@ -26,8 +26,8 @@ test_that("we can do something", {
}
#
if(grepl("linux", utils::sessionInfo()$platform)) {
system(paste0("attr -s is.rud.setting -V 'another attribute' ", tf), ignore.stdout = TRUE)
sys::exec_internal("attr", arg = c("-s", "is.rud.setting", "-V", "another attribute", tf), error = FALSE)
expect_true(has_xattrs(tf))
expect_identical(list_xattrs(tf), "is.rud.setting")
expect_identical(get_xattr(tf, "is.rud.setting"), "another attribute")

Loading…
Cancel
Save