keep track of what has moved to py3
[tests.git] / system / config_no_omf.py
1 # -*- python3 -*-
2 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
3 # Copyright (C) 2015 INRIA 
4 #
5 # remove slice_spec['omf-friendly'] 
6 #
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
10
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']
16     return plc_spec
17
18 def config (plc_specs, options):
19     return [ remove_omf(plc) for plc in plc_specs ]
20