diff options
author | Karel Kočí <cynerd@email.cz> | 2015-09-28 15:45:42 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-09-28 15:59:05 +0200 |
commit | 8cbd482ff0bf58594df2f339b57f22c836494929 (patch) | |
tree | bda7a81d8bd97597326b4456bcd7910605591f03 /scripts | |
parent | 2193b4677d9ca4e29dd30d68bd8faebe6586e880 (diff) | |
download | linux-conf-perf-8cbd482ff0bf58594df2f339b57f22c836494929.tar.gz linux-conf-perf-8cbd482ff0bf58594df2f339b57f22c836494929.tar.bz2 linux-conf-perf-8cbd482ff0bf58594df2f339b57f22c836494929.zip |
Add name of configuration option to generator name for single-sat
When generated with single-sat generator, configuration in database
haven't had information about what configuration option was used as
forced input while generating.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/configurations.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/configurations.py b/scripts/configurations.py index b30bfc8..9cfb738 100644 --- a/scripts/configurations.py +++ b/scripts/configurations.py @@ -176,6 +176,7 @@ def __register_conf__(con, conf_num, generator): return True def __generate_single__(var_num, conf_num): + utils.build_symbol_map() measure_list = set() if not os.path.isfile(sf(conf.single_generated_file)): with open(sf(conf.measure_file), 'r') as fi: @@ -187,15 +188,17 @@ def __generate_single__(var_num, conf_num): measure_list.add(int(ln)) if not measure_list: return False + measuring = measure_list.pop() tfile = __buildtempcnf__(var_num, (sf(conf.rules_file), - sf(conf.fixed_file)), [str(measure_list.pop())]) + sf(conf.fixed_file)), [str(measuring)]) with open(sf(conf.single_generated_file), 'w') as fo: for ln in measure_list: fo.write(str(ln) + '\n') try: confs = __exec_sat__(tfile, ['-i', '0'], conf_num) for con in confs: - if not __register_conf__(con, conf_num, 'single-sat'): + if not __register_conf__(con, conf_num, 'single-sat-' + + utils.smap[measuring]): return __generate_single__(var_num, conf_num) except exceptions.NoSolution: return __generate_single__(var_num, conf_num) |