From dae5f4eee235bfa6c81d76d1bf54889e50e7a51d Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 9 Sep 2015 15:55:23 +0900 Subject: test: retry docker removal when failed Signed-off-by: ISHIDA Wataru --- test/scenario_test/lib/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/scenario_test/lib') 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 -- cgit v1.2.3