From: vsr Date: Wed, 29 Oct 2014 09:57:18 +0000 (+0300) Subject: Fix pb with running make test when PortManager feature is switched ON (default behavi... X-Git-Tag: V7_5_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a62eebd042000f6ed5d6c694f214f03f30673ac2;p=modules%2Fparavis.git Fix pb with running make test when PortManager feature is switched ON (default behavior since v7.5.0) --- diff --git a/test/VisuPrs/Util/paravistesthelper.py b/test/VisuPrs/Util/paravistesthelper.py index 6a59811c..76854a66 100644 --- a/test/VisuPrs/Util/paravistesthelper.py +++ b/test/VisuPrs/Util/paravistesthelper.py @@ -33,6 +33,11 @@ if not os.getenv("OMNIORB_USER_PATH"): args = {} searchFreePort.searchFreePort(args) port = args['port'] +try: + import PortManager + PortManager.releasePort(os.environ['NSPORT']) +except ImportError: + pass def timeout_handler(signum, frame): print "FAILED : timeout(" + sys.argv[1] + ") is reached"