1 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
2 # Copyright (C) 2010 INRIA
4 # a configuration module is expected:
5 # (*) to define a config method
6 # (*) that takes two arguments
7 # (**) the current set of plc_specs as output by the preceding config modules
8 # (**) TestMain options field
9 # (*) and that returns the new set of plc_specs
11 # this config is defined to run on top of another one
12 # and just sets the nodes as 'reservable'
15 # run -c default -c resa
19 def config (plc_specs, options):
20 for plc_spec in plc_specs:
21 for site in plc_spec['sites']:
22 for node in site['nodes']:
23 node['node_fields']['node_type']='reservable'