mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 12:24:32 +00:00
fbb1a125fd
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.