fix(rpm): conventional file name should always have the release (#701)

* fix(rpm): conventional file name should always have the release

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* test: fix acceptance test

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker
2023-09-12 09:59:28 -03:00
committed by GitHub
parent 6692fd7d2c
commit cb2d7bd5d5
3 changed files with 35 additions and 37 deletions
+6 -6
View File
@@ -123,16 +123,16 @@ RUN command -v zsh
# ---- env-var-version test ----
FROM min AS env-var-version
ENV EXPECTVER="Version : 1.0.0~0.1.b1+git.abcdefgh" \
EXPECTREL="Release : 1"
ENV EXPECTVER="Version : 1.0.0~0.1.b1+git.abcdefgh-1" \
EXPECTREL="Release : 1"
RUN rpm -qpi /tmp/foo.rpm | sed -e 's/ \+/ /g' | grep "Version" > found.ver
RUN rpm -qpi /tmp/foo.rpm | sed -e 's/ \+/ /g' | grep "Release" > found.rel
RUN export FOUND_VER="$(cat found.ver)" && \
echo "Expected: ${EXPECTVER}' :: Found: '${FOUND_VER}'" && \
test "${FOUND_VER}" = "${EXPECTVER}"
echo "Expected: ${EXPECTVER}' :: Found: '${FOUND_VER}'" && \
test "${FOUND_VER}" = "${EXPECTVER}"
RUN export FOUND_REL="$(cat found.rel)" && \
echo "Expected: '${EXPECTREL}' :: Found: '${FOUND_REL}'" && \
test "${FOUND_REL}" = "${EXPECTREL}"
echo "Expected: '${EXPECTREL}' :: Found: '${FOUND_REL}'" && \
test "${FOUND_REL}" = "${EXPECTREL}"
# ---- changelog test ----