2 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
3 # Copyright (C) 2015 INRIA
5 # remove slice_spec['omf-friendly']
7 # this is for testing the system with a broken OMF-friendly feature
8 # as it happens the lxc builds can't build rvm
9 # in a first step I had created a no_omf branch but that was definitely a wrong idea
11 def remove_omf (plc_spec):
12 for slice in plc_spec['slices']:
13 if 'omf-friendly' in slice:
14 print('Turning off omf-friendly in slice',slice['slice_fields']['name'])
15 del slice['omf-friendly']
18 def config (plc_specs, options):
19 return [ remove_omf(plc) for plc in plc_specs ]