travis-ci: skip syslog tests for container-based travis infra

This commit is contained in:
Ryan Uber 2015-07-28 09:34:24 -07:00
parent 3ad7a53095
commit 40f3e3fae7
1 changed files with 6 additions and 1 deletions

View File

@ -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)