Merge "Make a black list for yardstick reporting"
[releng.git] / utils / test / reporting / yardstick / scenarios.py
1 import yaml
2 import os
3 import requests
4
5 import reportingConf as conf
6
7
8 response = requests.get(conf.TEST_CONF)
9 yaml_file = yaml.safe_load(response.text)
10 reporting = yaml_file.get('reporting')
11
12 config = {}
13
14 for element in reporting:
15     name = element['name']
16     scenarios = element['scenario']
17     for s in scenarios:
18         if not config.has_key(name):
19             config[name] = {}
20         config[name][s] = True