[PATCH 1/2] doc: pytest: fix hook script environment variable names

David Lechner dlechner at baylibre.com
Tue Nov 25 01:02:12 CET 2025


On 11/24/25 5:46 PM, Heinrich Schuchardt wrote:
> On 11/24/25 23:44, David Lechner wrote:
>> Fix the names of environment variables set for hook scripts. These
>> have a U_BOOT_ prefix, not UBOOT_.
>>
>> Signed-off-by: David Lechner <dlechner at baylibre.com>
>> ---
>>   doc/develop/pytest/usage.rst | 14 +++++++-------
>>   1 file changed, 7 insertions(+), 7 deletions(-)
>>
>> diff --git a/doc/develop/pytest/usage.rst b/doc/develop/pytest/usage.rst
>> index 7335a39b9633bb16869dfc976adab32d78dc984f..7c42a31528fd0ef78d3e24f65ee86ce2d61d6e87 100644
>> --- a/doc/develop/pytest/usage.rst
>> +++ b/doc/develop/pytest/usage.rst
>> @@ -315,14 +315,14 @@ Environment variables
>>     The following environment variables are set when running hook scripts:
>>   -- ``UBOOT_BOARD_TYPE`` the board type being tested.
>> -- ``UBOOT_BOARD_IDENTITY`` the board identity being tested, or ``na`` if none
>> +- ``U_BOOT_BOARD_TYPE`` the board type being tested.
> 
> I checked for the variable names in U-Boot origin/next and u-boot-test-hooks.
> 
> I could not find U_BOOT_BOARD_TYPE via grep.

It is because of:

    env_vars = (
        'board_type',
        'board_type_extra',
        'board_identity',
        'source_dir',
        'test_py_dir',
        'build_dir',
        'build_dir_extra',
        'result_dir',
        'persistent_data_dir',
    )
    for v in env_vars:
        os.environ['U_BOOT_' + v.upper()] = getattr(ubconfig, v)

Between this and the next patch, the docs should match this list now.



More information about the U-Boot mailing list