tools: Fix application of blueprint overrides in generate-test-cases

Blueprint overrides from `format-request-map.json` were previously not applied
when generating image test cases due to a bug. As a result, there were
multiple "blueprint" sections in the generated image test case, if the
image type had an override configured.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
Tomas Hozza 2021-01-19 17:59:41 +01:00 committed by Tom Gundersen
parent 777c66458d
commit 463a81550c

View file

@ -215,7 +215,7 @@ def main(distro, arch, image_types, keep_image_info, store, output, with_customi
filtered_request["compose-request"]["repositories"] = repos_dict[distro][arch]
if distro in test_case_request["overrides"]:
filtered_request.update(test_case_request["overrides"][distro])
filtered_request["compose-request"].update(test_case_request["overrides"][distro])
generate_test_case("boot", distro, arch, output_format, filtered_request, keep_image_info, store, output)