diff options
author | Stephen Warren <swarren@nvidia.com> | 2016-01-26 15:26:04 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-28 21:01:24 -0700 |
commit | d20e5e976f70bd2e230787091a88278dfe6e5192 (patch) | |
tree | 981317ea28ce44df1173c5cbbaac6037da56856f /dts/.gitignore | |
parent | a2ec560647e90250183e379799db957970cb260e (diff) | |
download | u-boot-imx-d20e5e976f70bd2e230787091a88278dfe6e5192.zip u-boot-imx-d20e5e976f70bd2e230787091a88278dfe6e5192.tar.gz u-boot-imx-d20e5e976f70bd2e230787091a88278dfe6e5192.tar.bz2 |
test/py: Provide custom IDs when parametrizing tests
When pytest generates the name for parametrized tests, simple parameter
values (ints, strings) get used directly, but more complex values such
as dicts are not handled. This yields test names such as:
dfu[env__usb_dev_port0-env__dfu_config0]
dfu[env__usb_dev_port0-env__dfu_config1]
Add some code to extract a custom fixture ID from the fixture values, so
that we end up with meaningful names such as:
dfu[micro_b-emmc]
dfu[devport2-ram]
If the boardenv file doesn't define custom names, the code falls back to
the old algorithm.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'dts/.gitignore')
0 files changed, 0 insertions, 0 deletions