5
OS_CI_ROOT = os.getenv('OS_CI_ROOT', '/home/ubuntu/src/ods-demo')
9
cfg = os.path.join(OS_CI_ROOT, 'etc', 'permutations.yaml')
10
return yaml.load(open(cfg))
13
def resolve(made, paths, order, components):
14
# populate 'paths' with all potential paths through order
15
if len(made) == len(order):
19
decision = order[len(made)]
20
choices = components[decision]
22
for choice in choices:
23
resolve(made + [choice], paths, order, components)
28
def get_permutations():
31
components = data['components']
33
for path in resolve([], [], order, components):
35
for (choice, conflicts) in data['blacklists'].items():
36
for conflict in conflicts:
37
if choice in path and conflict in path: