1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01:00
workload-automation/wa
Sergei Trofimov fbb1a125fd framework/target: fix caseless runtime params
Fix the setting of runtime parameters when the casing of the parameter in
the agenda does not match the "canonical" casing.

To make the writing of agendas easier, the casing of the parameters is
supposed to be ignored. To achieve this, parameter names are converted to
caseless_string type before they are looked up.

caseless_string's do not work with dicts. Both __contains__ (used for
the "in" operator) and __getitem__ (used for the [] operator) implement
hash-based look up, and it is not possible to have a caseless_string
match against multiple hashes to cover the different casing
possibilities.

So instead, iterate over the items in parameters dict, comparing the
caseless_string name to the key, and returning the value if it matches.
2018-01-11 11:04:25 +00:00
..
assets/bin tools/revent: further fixes 2017-09-29 09:48:25 +01:00
commands commands/show: Improved formatting of show command 2018-01-08 10:34:32 +00:00
framework framework/target: fix caseless runtime params 2018-01-11 11:04:25 +00:00
instrumentation instrument/energy: add support for Juno on-board measurement 2017-12-12 10:07:04 +00:00
processors processors: add targz processor 2017-12-11 10:07:21 +00:00
tools/revent tools/revent: further fixes 2017-09-29 09:48:25 +01:00
utils utils/revent: Refactor ReventRecording to avoid duplicate target calls 2018-01-08 10:36:02 +00:00
workloads workloads: port shellscript workload from WA2 2018-01-10 09:16:44 +00:00
__init__.py wa: export RunOutput and discover_wa_outputs 2017-12-13 15:55:38 +00:00