Skip to content

Commit

Permalink
test: fix a typo
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Shi <[email protected]>
  • Loading branch information
shi2wei3 committed Apr 10, 2024
1 parent d726751 commit 0e58fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmt/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [[ ${CI-x} == "RHTAP" ]]; then
podman login -u "${QUAY_USERNAME}" -p "${QUAY_PASSWORD}" quay.io
skopeo inspect docker://"$IMAGE_URL" >skopeo_inspect.json
COMPOSE_ID=$(jq -r '.Labels."redhat.compose-id"' skopeo_inspect.json)
if [[ "${COMPOSE_ID}" =~ ^RHEL-[0-9]+\.[0-9]+- ]]; then
if [[ "${COMPOSE_ID}" =~ ^RHEL-[0-9]+\.[0-9]+ ]]; then
TEST_OS=$(echo "${COMPOSE_ID//./-}" | grep -oP '^RHEL-[0-9]+\-[0-9]+' | tr '[:upper:]' '[:lower:]')
elif [[ "${COMPOSE_ID}" == "CentOS-Stream-9"* ]]; then
TEST_OS=$(echo "$COMPOSE_ID" | grep -oP '^CentOS-Stream-[0-9]+' | tr '[:upper:]' '[:lower:]')
Expand Down

0 comments on commit 0e58fee

Please sign in to comment.