Skip to content

feat(config_toolchain): add `env`, `data` and `toolchains`

Alex Tercete requested to merge values-in-labgrid-config into main

These changes allow providing files, environment variables and tools (through toolchains) to a Labgrid config file.

labgrid_config_toolchain(
    # ...
    env = {
        "MY_DATA_PATH": "$(location :my-data)",
        "MY_TOOL_PATH": "$(MY_TOOL)",
    },
    data = [":my-data"],
    toolchains = ["//my_tool/toolchain:resolved"],
    # ...
)

These values can be accessed within the Labgrid config file by using the !template directive to expand environment variables.

Merge request reports