diff options
author | Karel Kočí <cynerd@email.cz> | 2015-08-24 14:39:16 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-08-24 16:18:39 +0200 |
commit | a611965667c44f5db923a48d26e824d094e1a664 (patch) | |
tree | 68dada90a74f537e0008568b6dcb8f0fcc62417b /scripts/database.py | |
parent | 9ca8696a489b5c16a2239213919c9e8b7f8c55d5 (diff) | |
download | linux-conf-perf-a611965667c44f5db923a48d26e824d094e1a664.tar.gz linux-conf-perf-a611965667c44f5db923a48d26e824d094e1a664.tar.bz2 linux-conf-perf-a611965667c44f5db923a48d26e824d094e1a664.zip |
Add boot timeout
Boot process should timeout after selected number of seconds if no
output is generated. This allows resolving some problems with possible
boot stuck.
Diffstat (limited to 'scripts/database.py')
-rw-r--r-- | scripts/database.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/database.py b/scripts/database.py index 8664393..27c6a92 100644 --- a/scripts/database.py +++ b/scripts/database.py @@ -99,17 +99,18 @@ class database: rtn.append(Config(dt[0], hash, dt[1].split('\n'))) return rtn - def add_measure(self, output, conf_id, value = None): + def add_measure(self, output, result, conf_id, value = None): "Add measurement." ps = self.db.prepare("""INSERT INTO measure - (conf, output, value, mtime, toolgit, linuxgit, measurement) + (conf, output, value, mtime, toolgit, + linuxgit, measurement, result) VALUES - ($1, $2, $3, $4, $5, $6, $7); + ($1, $2, $3, $4, $5, $6, $7, $8); """) gt = self.check_toolsgit() lgt = self.check_linuxgit() tm = datetime.datetime.now() - ps(conf_id, output, value, tm, gt, lgt, conf.measure_identifier) + ps(conf_id, output, value, tm, gt, lgt, conf.measure_identifier, result) def update_measure(self, measure_id, value): "Update measured value" |