Skip to content

lisa.utils: Fix lisa.utils.namedtuple Mapping interface

Douglas Raillard requested to merge github/fork/douglas-raillard-arm/_pr388 into master

Iterating over a tuple yields the values it contains, like a list. Iterating over a mapping must yield the keys, i.e. the field names. Make lisa.utils.namedtuple comply with the Mapping interface rather than the tuple one, since that's the most suited for generic introspection of test metrics.

Merge request reports