@@ -76,30 +76,30 @@ CMD ["echo", "nerdctl-build-test-string"]`, testutil.CommonImage)
7676 Expected : test .Expects (0 , nil , test .Equals ("nerdctl-build-test-string\n " )),
7777 },
7878 {
79- Description : "Successfully build with output docker , main tag still works" ,
79+ Description : "Successfully build with output image , main tag still works" ,
8080 Setup : func (data test.Data , helpers test.Helpers ) {
81- helpers .Ensure ("build" , data .Get ("buildCtx" ), "-t" , data .Identifier (), "--output=type=docker ,name=" + data .Identifier ("ignored" ))
81+ helpers .Ensure ("build" , data .Get ("buildCtx" ), "-t" , data .Identifier (), "--output=type=image ,name=" + data .Identifier ("ignored" ))
8282 },
8383 Command : func (data test.Data , helpers test.Helpers ) test.TestableCommand {
84- return helpers .Command ("run" , "--rm" , data .Identifier ("ignored" ))
84+ return helpers .Command ("run" , "--rm" , data .Identifier ())
8585 },
8686 Cleanup : func (data test.Data , helpers test.Helpers ) {
8787 helpers .Anyhow ("rmi" , "-f" , data .Identifier ())
8888 },
8989 Expected : test .Expects (0 , nil , test .Equals ("nerdctl-build-test-string\n " )),
9090 },
9191 {
92- Description : "Successfully build with output docker, name cannot be used " ,
92+ Description : "Successfully build with output docker, named image " ,
9393 Setup : func (data test.Data , helpers test.Helpers ) {
94- helpers .Ensure ("build" , data .Get ("buildCtx" ), "-t" , data . Identifier (), "-- output=type=docker,name="+ data .Identifier ("ignored" ))
94+ helpers .Ensure ("build" , data .Get ("buildCtx" ), "-- output=type=docker,name=" + data .Identifier ())
9595 },
9696 Command : func (data test.Data , helpers test.Helpers ) test.TestableCommand {
97- return helpers .Command ("run" , "--rm" , data .Identifier ("ignored" ))
97+ return helpers .Command ("run" , "--rm" , data .Identifier ())
9898 },
9999 Cleanup : func (data test.Data , helpers test.Helpers ) {
100100 helpers .Anyhow ("rmi" , "-f" , data .Identifier ())
101101 },
102- Expected : test .Expects (- 1 , nil , nil ),
102+ Expected : test .Expects (0 , nil , test . Equals ( "nerdctl-build-test-string \n " ) ),
103103 },
104104 },
105105 }
0 commit comments