diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-09 15:55:23 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-09-10 13:58:26 +0900 |
commit | dae5f4eee235bfa6c81d76d1bf54889e50e7a51d (patch) | |
tree | 97f8eb49713ac3e92bcd84c510ca3fdac4352cee /test | |
parent | cf1965a9630925410f616fb2fe50c8b0d328caa1 (diff) |
test: retry docker removal when failed
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'test')
-rw-r--r-- | test/scenario_test/lib/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/scenario_test/lib/base.py b/test/scenario_test/lib/base.py index 42cdc0e1..9fc155c9 100644 --- a/test/scenario_test/lib/base.py +++ b/test/scenario_test/lib/base.py @@ -179,7 +179,7 @@ class Container(object): return 0 def stop(self): - ret = local("docker rm -f " + self.docker_name(), capture=True) + ret = try_several_times(lambda : local("docker rm -f " + self.docker_name(), capture=True)) self.is_running = False return ret |