Test/api.sh: pass TEST_MODULE_HOTFIXES as an env variable

While I was the one to push for TEST_MODULE_HOTFIXES to be passed as an
argument to `api.sh`, when it was implemented, this is turning our to be
impractical. I would like to extend `api.sh` to test distro names with
and without the dot to separate major and minor version and also to test
the ability to specify distro name explicitly (e.g. a distro alias).
Passing all of these new options and their combinations would make the
CLI go wild.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2024-01-12 21:46:38 +01:00 committed by Achilleas Koutsou
parent 17ad9c1165
commit c82c0ae6b5
2 changed files with 6 additions and 4 deletions

View file

@ -551,7 +551,7 @@ API-module-hotfixes:
# don't run this test case for nightly trees
script:
- schutzbot/deploy.sh
- /usr/libexec/tests/osbuild-composer/api.sh "${IMAGE_TYPE}" "" "${TEST_MODULE_HOTFIXES}"
- /usr/libexec/tests/osbuild-composer/api.sh "${IMAGE_TYPE}"
parallel:
matrix:
- IMAGE_TYPE: