diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c9ae510b..86b98fddc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/test/cases/api.sh b/test/cases/api.sh index da242dfad..8b6ef0729 100755 --- a/test/cases/api.sh +++ b/test/cases/api.sh @@ -33,8 +33,8 @@ export IMAGE_TYPE_OCI="oci" export IMAGE_TYPE_VSPHERE="vsphere" export IMAGE_TYPE_IOT_COMMIT="iot-commit" -if (( $# > 3 )); then - echo "$0 does not support more than three arguments" +if (( $# > 2 )); then + echo "$0 does not support more than two arguments" exit 1 fi @@ -46,7 +46,9 @@ fi set -euo pipefail IMAGE_TYPE="$1" -TEST_MODULE_HOTFIXES="${3:-0}" + +# set TEST_MODULE_HOTFIXES to 1 to enable module hotfixes for the test +TEST_MODULE_HOTFIXES="${TEST_MODULE_HOTFIXES:-0}" # select cloud provider based on image type #