self.l = loader.YACSLoader()
self.e = pilot.ExecutorSwig()
# We need a catalog which contains only one resource named "localhost"
- # with 16 cores. The modifications made here are not saved to the
+ # with NB_NODE cores. The modifications made here are not saved to the
# catalog file.
salome.salome_init()
resourceManager = salome.lcc.getResourcesManager()
resource_definition = resourceManager.GetResourceDefinition("localhost")
resource_definition.nb_node = NB_NODE
+ resource_definition.nb_proc_per_node = 1
resourceManager.AddResource(resource_definition, False, "")
resource_required = salome.ResourceParameters()
resource_required.can_run_containers = True
resourceManager.RemoveResource(r, False, "")
resource_definition = resourceManager.GetResourceDefinition("localhost")
self.assertEqual(resource_definition.nb_node, NB_NODE)
+ self.assertEqual(resource_definition.nb_proc_per_node, 1)
def tearDown(self):
cm = salome.lcc.getContainerManager()
self.assertEqual(proc.getState(),pilot.FAILED)
self.assertEqual(proc.getChildByName("ErrorNode").getState(),pilot.ERROR)
+ def test5(self):
+ """ Foreach with 1000 points and several nodes in the block.
+ """
+ proc = self.l.load("samples/wlm_complex_foreach.xml")
+ self.e.RunW(proc,0)
+ self.assertEqual(proc.getState(),pilot.DONE)
+
if __name__ == '__main__':
dir_test = tempfile.mkdtemp(suffix=".yacstest")
file_test = os.path.join(dir_test,"UnitTestsResult")