Turn on journald and k8s file logging tests

Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:
Daniel J Walsh
2021-02-17 23:06:43 -05:00
committed by Ashley Cui
parent 612ba6aa82
commit 05eb06f568
3 changed files with 307 additions and 302 deletions

View File

@ -482,3 +482,13 @@ func RandomString(n int) string {
}
return string(b)
}
//SkipIfInContainer skips a test if the test is run inside a container
func SkipIfInContainer(reason string) {
if len(reason) < 5 {
panic("SkipIfInContainer must specify a reason to skip")
}
if os.Getenv("TEST_ENVIRON") == "container" {
Skip("[container]: " + reason)
}
}