summaryrefslogtreecommitdiffhomepage
path: root/runsc/test/testutil
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-06-18 01:40:12 -0700
committergVisor bot <gvisor-bot@google.com>2019-06-18 01:41:29 -0700
commit3d1e44a677ecacbf81888211a93cef0a71c1c6c0 (patch)
tree39ba6e6996c2adff48c464e3de395f706b3a435d /runsc/test/testutil
parent66cc0e9f928218ca642a41fa67bb163197aa1f37 (diff)
gvisor/kokoro: don't modify tests names in the BUILD file
PiperOrigin-RevId: 253746380
Diffstat (limited to 'runsc/test/testutil')
-rw-r--r--runsc/test/testutil/docker.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/runsc/test/testutil/docker.go b/runsc/test/testutil/docker.go
index 81f5a9ef0..b20f8e783 100644
--- a/runsc/test/testutil/docker.go
+++ b/runsc/test/testutil/docker.go
@@ -15,6 +15,7 @@
package testutil
import (
+ "flag"
"fmt"
"io/ioutil"
"log"
@@ -30,10 +31,15 @@ import (
"github.com/kr/pty"
)
+var runtimeType = flag.String("runtime-type", "", "specify which runtime to use: kvm, hostnet, overlay")
+
func getRuntime() string {
r, ok := os.LookupEnv("RUNSC_RUNTIME")
if !ok {
- return "runsc-test"
+ r = "runsc-test"
+ }
+ if *runtimeType != "" {
+ r += "-" + *runtimeType
}
return r
}