@@ -29,9 +29,7 @@ import (
2929 "time"
3030
3131 "github.com/containerd/containerd"
32- "github.com/containerd/containerd/containers"
3332 "github.com/containerd/containerd/namespaces"
34- "github.com/containerd/containerd/oci"
3533 metrics "github.com/docker/go-metrics"
3634 "github.com/sirupsen/logrus"
3735 "github.com/urfave/cli"
@@ -227,7 +225,6 @@ func test(c config) error {
227225 if err != nil {
228226 return err
229227 }
230- logrus .Info ("generating spec from image" )
231228 tctx , cancel := context .WithTimeout (ctx , c .Duration )
232229 go func () {
233230 s := make (chan os.Signal , 1 )
@@ -241,26 +238,16 @@ func test(c config) error {
241238 r = & run {}
242239 )
243240 logrus .Info ("starting stress test run..." )
244- args := oci .WithProcessArgs ("true" )
245241 v , err := client .Version (ctx )
246242 if err != nil {
247243 return err
248244 }
249245 // create the workers along with their spec
250246 for i := 0 ; i < c .Concurrency ; i ++ {
251247 wg .Add (1 )
252- spec , err := oci .GenerateSpec (ctx , client ,
253- & containers.Container {},
254- oci .WithImageConfig (image ),
255- args ,
256- )
257- if err != nil {
258- return err
259- }
260248 w := & worker {
261249 id : i ,
262250 wg : & wg ,
263- spec : spec ,
264251 image : image ,
265252 client : client ,
266253 commit : v .Revision ,
@@ -270,19 +257,10 @@ func test(c config) error {
270257 var exec * execWorker
271258 if c .Exec {
272259 wg .Add (1 )
273- spec , err := oci .GenerateSpec (ctx , client ,
274- & containers.Container {},
275- oci .WithImageConfig (image ),
276- args ,
277- )
278- if err != nil {
279- return err
280- }
281260 exec = & execWorker {
282261 worker : worker {
283262 id : c .Concurrency ,
284263 wg : & wg ,
285- spec : spec ,
286264 image : image ,
287265 client : client ,
288266 commit : v .Revision ,
0 commit comments