mirror of
https://github.com/containers/podman.git
synced 2025-06-02 19:02:10 +08:00
Turn on journald and k8s file logging tests
Signed-off-by: Ashley Cui <acui@redhat.com>
This commit is contained in:

committed by
Ashley Cui

parent
612ba6aa82
commit
05eb06f568
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user