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