From ba51999fa65d9a5a87b4d9848a6e2573a8812e8d Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Fri, 12 Feb 2021 11:25:53 -0800 Subject: Fix bug with iperf and don't profile runc. Fix issue with iperf where b.N wasn't changing across runs. Also, if the given runtime is runc/not given, don't run a profile against it. PiperOrigin-RevId: 357231450 --- pkg/test/dockerutil/container.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/test') diff --git a/pkg/test/dockerutil/container.go b/pkg/test/dockerutil/container.go index 7bacb70d3..41fcf4978 100644 --- a/pkg/test/dockerutil/container.go +++ b/pkg/test/dockerutil/container.go @@ -216,7 +216,7 @@ func (c *Container) Create(ctx context.Context, r RunOpts, args ...string) error } func (c *Container) create(ctx context.Context, profileImage string, conf *container.Config, hostconf *container.HostConfig, netconf *network.NetworkingConfig) error { - if c.runtime != "" { + if c.runtime != "" && c.runtime != "runc" { // Use the image name as provided here; which normally represents the // unmodified "basic/alpine" image name. This should be easy to grok. c.profileInit(profileImage) -- cgit v1.2.3