@@ -45,7 +45,7 @@ def _init_container(self, prefix, fin, subargs, cmd):
4545 self .sub_stuff ['containers' ].append (name )
4646 subargs .append (fin )
4747 subargs .append (cmd )
48- mustpass (DockerCmd (self , 'run' , subargs , verbose = False ).execute ())
48+ mustpass (DockerCmd (self , 'run' , subargs ).execute ())
4949 return name
5050
5151 def _create_image (self , parent , prefix , cmd ):
@@ -57,11 +57,10 @@ def _create_image(self, parent, prefix, cmd):
5757 images = self .sub_stuff ['di' ]
5858 cont_name = self ._init_container ("test" , parent , [], cmd )
5959 img_name = images .get_unique_name (prefix )
60- dkrcmd = DockerCmd (self , "commit" , [cont_name , img_name ],
61- verbose = False )
60+ dkrcmd = DockerCmd (self , "commit" , [cont_name , img_name ])
6261 img_id = mustpass (dkrcmd .execute ()).stdout .strip ()
63- mustpass (DockerCmd (self , 'rm' , [ '--force' , '--volumes' , cont_name ],
64- verbose = False ).execute ())
62+ mustpass (DockerCmd (self , 'rm' ,
63+ [ '--force' , '--volumes' , cont_name ] ).execute ())
6564 self .sub_stuff ['images' ].append (img_id )
6665 return [img_id , img_name ]
6766
@@ -135,8 +134,8 @@ def id_in(long_id, images):
135134 % (image [1 ], err_str ()))
136135 if image [3 ] and image [4 ] is not None :
137136 history = mustpass (DockerCmd (self , 'history' ,
138- ['--no-trunc' , '-q' , image [ 0 ]],
139- verbose = False ).execute ()).stdout
137+ ['--no-trunc' , '-q' ,
138+ image [ 0 ]] ).execute ()).stdout
140139 for parent in image [4 ]:
141140 self .failif (parent not in history , "Parent image '%s' of "
142141 "image '%s' was not found in `docker history`:"
@@ -185,23 +184,23 @@ def run_once(self):
185184 # Verify
186185 self .verify_images ((test_a , test_a1 , test_b , test_b1 ))
187186 # Untag test_a
188- mustpass (DockerCmd (self , 'rmi' , [test_a [1 ]], verbose = False ).execute ())
187+ mustpass (DockerCmd (self , 'rmi' , [test_a [1 ]]).execute ())
189188 test_a [3 ] = False # exists, untagged
190189 # Verify
191190 self .verify_images ((test_a , test_a1 , test_b , test_b1 ))
192191 # Untag test_a.1
193- mustpass (DockerCmd (self , 'rmi' , [test_a1 [1 ]], verbose = False ).execute ())
192+ mustpass (DockerCmd (self , 'rmi' , [test_a1 [1 ]]).execute ())
194193 test_a1 [2 :4 ] = [False , False ] # doesn't exist, not tagged
195194 test_a [2 :4 ] = [False , False ] # doesn't exist, not tagged
196195 # Verify
197196 self .verify_images ((test_a , test_a1 , test_b , test_b1 ))
198197 # Untag test_b.1
199- mustpass (DockerCmd (self , 'rmi' , [test_b1 [1 ]], verbose = False ).execute ())
198+ mustpass (DockerCmd (self , 'rmi' , [test_b1 [1 ]]).execute ())
200199 test_b1 [2 :4 ] = [False , False ] # doesn't exist, not tagged
201200 # Verify
202201 self .verify_images ((test_a , test_a1 , test_b , test_b1 ))
203202 # Remove the last image by id
204- mustpass (DockerCmd (self , 'rmi' , [test_b [0 ]], verbose = False ).execute ())
203+ mustpass (DockerCmd (self , 'rmi' , [test_b [0 ]]).execute ())
205204 test_b [2 :4 ] = [False , False ] # doesn't exist, not tagged
206205 self .verify_images ((test_a , test_a1 , test_b , test_b1 ))
207206
0 commit comments