aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-13 11:57:40 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-13 11:57:40 +0200
commita62b2a1da87c05373242b0db0d6f99b99a92c77a (patch)
tree3d89d2d9c6040fdeb1d3828fc85b067b83acf4f8 /scripts
parent5bf8e17c83d4b5500fd81edaee5c495161e1f0ba (diff)
downloadlinux-conf-perf-a62b2a1da87c05373242b0db0d6f99b99a92c77a.tar.gz
linux-conf-perf-a62b2a1da87c05373242b0db0d6f99b99a92c77a.tar.bz2
linux-conf-perf-a62b2a1da87c05373242b0db0d6f99b99a92c77a.zip
Fix single_generated_file writeback
measure_list containst ints. But method writelines can only be used with strings.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/configurations.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/configurations.py b/scripts/configurations.py
index a9ede05..aef8a5f 100644
--- a/scripts/configurations.py
+++ b/scripts/configurations.py
@@ -173,7 +173,8 @@ def __generate_single__(var_num, conf_num):
tfile = __buildtempcnf__(var_num, (sf(conf.rules_file),
sf(conf.fixed_file)), (str(measure_list.pop())))
with open(sf(conf.single_generated_file), 'w') as fo:
- fo.writelines(measure_list)
+ for ln in measure_list:
+ fo.write(str(ln) + '\n')
try:
confs = __exec_sat__(tfile, ['-i', '0'])
for con in confs: