2015-09-07 17:33:28 +00:00
|
|
|
package testutils
|
2015-02-24 19:19:00 +00:00
|
|
|
|
2015-08-31 18:55:58 +00:00
|
|
|
import "flag"
|
2015-02-24 19:19:00 +00:00
|
|
|
|
2015-05-12 23:39:30 +00:00
|
|
|
var runningInContainer = flag.Bool("incontainer", false, "Indicates if the test is running in a container")
|
|
|
|
|
|
|
|
// IsRunningInContainer returns whether the test is running inside a container.
|
|
|
|
func IsRunningInContainer() bool {
|
|
|
|
return (*runningInContainer)
|
|
|
|
}
|