diff --git a/tools/test-case-generators/format-request-map.json b/tools/test-case-generators/format-request-map.json index 33804e362..709b07527 100644 --- a/tools/test-case-generators/format-request-map.json +++ b/tools/test-case-generators/format-request-map.json @@ -69,7 +69,8 @@ } } }, - "overrides": {} + "overrides": {}, + "supported_arches": ["x86_64"] }, "rhel-edge-commit": { "compose-request": { @@ -108,7 +109,8 @@ } } }, - "overrides": {} + "overrides": {}, + "supported_arches": ["x86_64"] }, "fedora-iot-commit": { "compose-request": { diff --git a/tools/test-case-generators/generate-test-cases b/tools/test-case-generators/generate-test-cases index dd1e41af8..85f069250 100755 --- a/tools/test-case-generators/generate-test-cases +++ b/tools/test-case-generators/generate-test-cases @@ -242,6 +242,11 @@ def main(distro, arch, image_types, keep_image_info, store, output, with_customi if filtered_request["compose-request"]["image-type"] not in image_types: continue filtered_request["compose-request"]["distro"] = distro + # if the compose-request has specified supported arches, then generate + # the test case only if the requested arch is in the list + supported_arches = filtered_request.get("supported_arches") + if supported_arches is not None and arch not in supported_arches: + continue filtered_request["compose-request"]["arch"] = arch filtered_request["compose-request"]["repositories"] = repos_dict[distro][arch]