2015-09-07 13:33:28 -04:00
|
|
|
package testutils
|
2015-02-24 14:19:00 -05:00
|
|
|
|
2015-08-31 14:55:58 -04:00
|
|
|
import "flag"
|
2015-02-24 14:19:00 -05:00
|
|
|
|
2015-05-12 19:39:30 -04: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)
|
|
|
|
}
|