[U-Boot] [PATCH] test/py: Fix exception, do not parametrize with empty set

Stephen Warren swarren at wwwdotorg.org
Mon Oct 17 20:11:26 CEST 2016


On 10/16/2016 12:17 PM, Stefan Brüns wrote:
> If the parameter set is empty, the pytest setup fails:
> ---
>     call: <CallInfo when='setup' exception: got empty parameter set
>     ['env__dfu_config'], function test_dfu at [...]test_dfu.py:107>
> ---
>
> This aborts pytest_runtest_makereport and later leads to an exception
> during the report generation, as the call to log.start_section(...)
> is never executed:
> ---
>     Exception: Block nesting mismatch:
>     "test_dfu[env__usb_dev_port0-env__dfu_config0]" ""
> ---

How do you trigger this? I believe my test setup has many cases where 
the test you added would trigger, but without the issues you mention, 
but I'm not 100% sure since I don't know for sure what is causing this 
issue.

Which pytest version do you have? I appear to have 2.5.1 (on Ubuntu Trusty)


More information about the U-Boot mailing list