]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix pb with running make test when PortManager feature is switched ON (default behavi...
authorvsr <vsr@opencascade.com>
Wed, 29 Oct 2014 09:57:18 +0000 (12:57 +0300)
committervsr <vsr@opencascade.com>
Wed, 29 Oct 2014 09:57:18 +0000 (12:57 +0300)
test/VisuPrs/Util/paravistesthelper.py

index 6a59811c79b34b4483a3d466d5f625bdf01ef4e4..76854a6600000671fbb0356eb7d877191be83a78 100644 (file)
@@ -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"