From f48bc65e62daeeeec173f60ab18a5c35017aa05f Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Tue, 28 Jul 2015 09:34:24 -0700 Subject: [PATCH] travis-ci: skip syslog tests for container-based travis infra --- command/agent/syslog_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/command/agent/syslog_test.go b/command/agent/syslog_test.go index 707570319..0990a081d 100644 --- a/command/agent/syslog_test.go +++ b/command/agent/syslog_test.go @@ -1,6 +1,7 @@ package agent import ( + "os" "runtime" "testing" @@ -10,8 +11,12 @@ import ( func TestSyslogFilter(t *testing.T) { if runtime.GOOS == "windows" { - t.SkipNow() + t.Skip("Syslog not supported on Windows") } + if os.Getenv("TRAVIS") == "true" { + t.Skip("Syslog not supported on travis-ci") + } + l, err := gsyslog.NewLogger(gsyslog.LOG_NOTICE, "LOCAL0", "consul") if err != nil { t.Fatalf("err: %s", err)