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