Salome HOME
Cleaning the containers in ssl tests. omu/test_ssl
authorOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Tue, 7 Sep 2021 12:35:58 +0000 (14:35 +0200)
committerOvidiu Mircescu <ovidiu.mircescu@edf.fr>
Tue, 7 Sep 2021 12:35:58 +0000 (14:35 +0200)
src/py2yacs/Test/Py2yacsTest.cxx
src/py2yacs/Test/testDeco.py
src/yacsloader_swig/Test/testPynodeWithCache.py

index 4049c9107fb1729c21d4c61d953f88a81ea0565c..8cea86323bb80fc7fdb0a3eae469a122631e9e2f 100644 (file)
@@ -299,6 +299,7 @@ void Py2yacsTest::schemaExec()
   CPPUNIT_ASSERT(pyVal);
   CPPUNIT_ASSERT(PyFloat_Check(pyVal));
   CPPUNIT_ASSERT_DOUBLES_EQUAL(42., PyFloat_AsDouble(pyVal), 1.E-12);
+  p->shutdown(10); // kill all the containers
 }
 
 // Test the behaviour when there is an error in the python parser
index 00f60a77363fba53e3ef9c35ec579ead751d6a8b..588c7ab13a9a0373b08508ffd64ac9be7dd8e688 100755 (executable)
@@ -52,6 +52,10 @@ class TestDeco(unittest.TestCase):
       resource_definition = resourceManager.GetResourceDefinition("localhost")
       self.assertEqual(resource_definition.nb_node, NB_NODE)
 
+    def tearDown(self):
+        cm = salome.lcc.getContainerManager()
+        cm.ShutdownContainers()
+
     def test_t1(self):
       """
       Schema:
index b80dc94195c810e0609dec37f20b253a05cd368b..ce847d40a8220e22e876e819feccbeac891d478d 100755 (executable)
@@ -21,6 +21,7 @@
 import sys
 import pilot
 import SALOMERuntime
+import salome
 import loader
 import unittest
 import tempfile
@@ -37,6 +38,11 @@ class TestEdit(unittest.TestCase):
         self.e = pilot.ExecutorSwig()
         pass
 
+    def tearDown(self):
+        salome.salome_init()
+        cm = salome.lcc.getContainerManager()
+        cm.ShutdownContainers()
+
     def test1(self):
       """ Test the conservation of the python context between two nodes sharing
           the same container.