1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

proc/sqlite: fix writing runtime/boot_params

Make sure runtime_params and boot_params are to_pod()'d when they get
written, as they are obj_dict's that json serializer does not know how
to handle otherwise.
This commit is contained in:
Sergei Trofimov 2018-03-29 17:55:36 +01:00 committed by Marc Bonnici
parent d572e5210d
commit 723b24306b

View File

@ -190,7 +190,8 @@ class SqliteResultProcessor(OutputProcessor):
def _update_spec(self, spec):
self._last_spec = spec
spec_tuple = (spec.id, self._run_oid, spec.iterations, spec.label, spec.workload_name,
json.dumps(spec.boot_parameters), json.dumps(spec.runtime_parameters),
json.dumps(spec.boot_parameters.to_pod()),
json.dumps(spec.runtime_parameters.to_pod()),
json.dumps(spec.workload_parameters.to_pod()))
with self._open_connecton() as conn:
conn.execute('INSERT INTO workload_specs VALUES (?,?,?,?,?,?,?,?)', spec_tuple)