> Necessary for neutron functional tests so that a test won't
> interfere the next test in a run.

fwiw, the tests in question are:

    https://review.openstack.org/#/c/172344/

failure logs:

    
http://logs.openstack.org/44/172344/2/check/check-neutron-dsvm-functional/184f03c/testr_results.html.gz

with this patch applied, these tests succeed
at least in my local test environment.

YAMAMOTO Takashi

> 
> Signed-off-by: YAMAMOTO Takashi <yamam...@valinux.co.jp>
> ---
>  ryu/base/app_manager.py | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py
> index f0137ea..e45f9c2 100644
> --- a/ryu/base/app_manager.py
> +++ b/ryu/base/app_manager.py
> @@ -28,6 +28,7 @@ import itertools
>  import logging
>  import sys
>  import os
> +import gc
>  
>  from ryu import cfg
>  from ryu import utils
> @@ -344,6 +345,10 @@ class AppManager(object):
>              hub.joinall(services)
>          finally:
>              app_mgr.close()
> +            for t in services:
> +                t.kill()
> +            hub.joinall(services)
> +            gc.collect()
>  
>      @staticmethod
>      def get_instance():
> @@ -511,5 +516,7 @@ class AppManager(object):
>                  self._close(app)
>              close_dict.clear()
>  
> -        close_all(self.applications)
> +        for app_name in list(self.applications.keys()):
> +            self.uninstantiate(app_name)
> +        assert not self.applications
>          close_all(self.contexts)
> -- 
> 2.1.0
> 

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to