Skip to content

Commit

Permalink
rm non-running testing container
Browse files Browse the repository at this point in the history
  • Loading branch information
revol.cai committed May 25, 2018
1 parent f150c06 commit 56e29b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/docker_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def docker_run_etcd_main(): # pragma: no cover
if isinstance(spec, list):
spec = spec[0]
image = spec.get('Config', {}).get('Image')
if image != ETCD_IMG:
if image != ETCD_IMG or not spec.get('State', {}).get('Running'):
if spec.get('Config', {}).get('Labels', {}).get('etcd3.py.test') == 'main':
print(docker('rm -f %s' % name))
raise RuntimeError
Expand Down

0 comments on commit 56e29b4

Please sign in to comment.