Skip to content

Commit 963010d

Browse files
committed
make AppenderSyslog use cat and grep instead of journalctl so that it may work on travis
1 parent 491ebc2 commit 963010d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test_Appender.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,6 @@ test_that("AppenderSyslog: logging to syslog works", {
555555
lg$add_appender(AppenderSyslog$new(), "syslog")
556556
lg$info("A test message %s", msg)
557557

558-
log = system2("journalctl", "-t 'rsyslog/test'", stdout = TRUE)
558+
log = system("cat /var/log/syslog | grep rsyslog/test", intern = TRUE)
559559
expect_true(any(grepl(msg, log), fixed = TRUE))
560560
})

0 commit comments

Comments
 (0)