diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-08 18:53:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 18:53:29 +0100 |
commit | d0a44755c75763d2f5c656dca15b6bb928c961c4 (patch) | |
tree | 9f30abae7a8125f98290dc945476854357b1bfe9 /test/utils/utils.go | |
parent | abfec8144a57265e644dbfec93f5b6201b7da945 (diff) | |
parent | e907f095b24632ebf25348bc17ba3ff3468a979b (diff) | |
download | podman-d0a44755c75763d2f5c656dca15b6bb928c961c4.tar.gz podman-d0a44755c75763d2f5c656dca15b6bb928c961c4.tar.bz2 podman-d0a44755c75763d2f5c656dca15b6bb928c961c4.zip |
Merge pull request #12036 from jwhonce/issues/11984
test connection add
Diffstat (limited to 'test/utils/utils.go')
-rw-r--r-- | test/utils/utils.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/test/utils/utils.go b/test/utils/utils.go index d4d5e6e2f..8d1edb23a 100644 --- a/test/utils/utils.go +++ b/test/utils/utils.go @@ -397,7 +397,7 @@ func tagOutputToMap(imagesOutput []string) map[string]map[string]bool { return m } -// GetHostDistributionInfo returns a struct with its distribution name and version +// GetHostDistributionInfo returns a struct with its distribution Name and version func GetHostDistributionInfo() HostOS { f, err := os.Open(OSReleasePath) defer f.Close() @@ -491,13 +491,3 @@ 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) - } -} |