diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d277eef3d..f4db2a014 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -244,6 +244,7 @@ Integration: RUNNER: - aws/rhel-8-x86_64 - openstack/rhel-8.5-x86_64 + - openstack/rhel-9.0-beta-nightly-x86_64 INTERNAL_NETWORK: ["true"] - SCRIPT: - aws.sh diff --git a/tools/libvirt_test.sh b/tools/libvirt_test.sh index 05e1bdeab..7ca4c4a69 100755 --- a/tools/libvirt_test.sh +++ b/tools/libvirt_test.sh @@ -149,13 +149,21 @@ trap 'sudo pkill -P ${WORKER_JOURNAL_PID}' EXIT # Start the compose greenprint "🚀 Starting compose" sudo composer-cli --json compose start bp "$IMAGE_TYPE" | tee "$COMPOSE_START" -COMPOSE_ID=$(jq -r '.build_id' "$COMPOSE_START") +if rpm -q --quiet weldr-client; then + COMPOSE_ID=$(jq -r '.body.build_id' "$COMPOSE_START") +else + COMPOSE_ID=$(jq -r '.build_id' "$COMPOSE_START") +fi # Wait for the compose to finish. greenprint "⏱ Waiting for compose to finish: ${COMPOSE_ID}" while true; do sudo composer-cli --json compose info "${COMPOSE_ID}" | tee "$COMPOSE_INFO" > /dev/null - COMPOSE_STATUS=$(jq -r '.queue_status' "$COMPOSE_INFO") + if rpm -q --quiet weldr-client; then + COMPOSE_STATUS=$(jq -r '.body.queue_status' "$COMPOSE_INFO") + else + COMPOSE_STATUS=$(jq -r '.queue_status' "$COMPOSE_INFO") + fi # Is the compose finished? if [[ $COMPOSE_STATUS != RUNNING ]] && [[ $COMPOSE_STATUS != WAITING ]]; then