test: Ensure container is exited before deleting it
test: Ensure container is exited before deleting it

Closes #2906

Reviewed-by: Dominik Perpeet <f7830b2723a5db4fc185058b06cfab4b89a38da9@redhat.com>

FireDrunk/cockpit,michalskrivanek/cockpit,matobet/cockpit,larsu/cockpit,jscotka/cockpit,dperpeet/cockpit,michalskrivanek/cockpit,cockpit-project/cockpit,sgallagher/cockpit,larskarlitski/cockpit,arilivigni/cockpit,larskarlitski/cockpit,FireDrunk/cockpit,arilivigni/cockpit,andreasn/cockpit,deryni/cockpit,SotolitoLabs/cockpit,sgallagher/cockpit,haiyangd/cockpit_view,jscotka/cockpit,stefwalter/cockpit,Scribery/cockpit,vanloswang/cockpit,dperpeet/cockpit,petervo/cockpit,matobet/cockpit,arilivigni/cockpit,Scribery/cockpit,arilivigni/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,petervo/cockpit,cockpit-project/cockpit,garrett/cockpit,haiyangd/cockpit_view,petervo/cockpit,Scribery/cockpit,xhad/cockpit,andreasn/cockpit,cockpituous/cockpit,moraleslazaro/cockpit,dperpeet/cockpit,garrett/cockpit,andreasn/cockpit,harishanand95/cockpit,deryni/cockpit,FireDrunk/cockpit,arilivigni/cockpit,martinpitt/cockpit,Scribery/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,mvollmer/cockpit,garrett/cockpit,Scribery/cockpit,andreasn/cockpit,harishanand95/cockpit,vanloswang/cockpit,larsu/cockpit,xhad/cockpit,mareklibra/cockpit,cockpituous/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,petervo/cockpit,sgallagher/cockpit,matobet/cockpit,deryni/cockpit,vanloswang/cockpit,larsu/cockpit,mvollmer/cockpit,deryni/cockpit,dperpeet/cockpit,mvollmer/cockpit,FireDrunk/cockpit,michalskrivanek/cockpit,sgallagher/cockpit,deryni/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,dperpeet/cockpit,sgallagher/cockpit,matobet/cockpit,matobet/cockpit,jscotka/cockpit,arilivigni/cockpit,mareklibra/cockpit,martinpitt/cockpit,stefwalter/cockpit,larsu/cockpit,petervo/cockpit,petervo/cockpit,haiyangd/cockpit_view,cockpituous/cockpit,mvollmer/cockpit,vanloswang/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,dperpeet/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,garrett/cockpit,moraleslazaro/cockpit,Scribery/cockpit,andreasn/cockpit,mareklibra/cockpit,sgallagher/cockpit,larskarlitski/cockpit,jscotka/cockpit,larskarlitski/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,cockpituous/cockpit,xhad/cockpit,harishanand95/cockpit,vanloswang/cockpit,garrett/cockpit,cockpituous/cockpit,mvollmer/cockpit,stefwalter/cockpit,xhad/cockpit,andreasn/cockpit,xhad/cockpit,harishanand95/cockpit,deryni/cockpit,FireDrunk/cockpit,SotolitoLabs/cockpit,jscotka/cockpit,vanloswang/cockpit,matobet/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,petervo/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,andreasn/cockpit,michalskrivanek/cockpit,stefwalter/cockpit,michalskrivanek/cockpit,arilivigni/cockpit,cockpit-project/cockpit,harishanand95/cockpit,martinpitt/cockpit,vanloswang/cockpit,xhad/cockpit,martinpitt/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,Scribery/cockpit,jscotka/cockpit,martinpitt/cockpit,dperpeet/cockpit,moraleslazaro/cockpit,larsu/cockpit,cockpit-project/cockpit,cockpituous/cockpit,haiyangd/cockpit_view,deryni/cockpit,larsu/cockpit,cockpit-project/cockpit,haiyangd/cockpit_view,mareklibra/cockpit,sgallagher/cockpit,xhad/cockpit,harishanand95/cockpit