Sanity/smoke-test: install dependencies also on CentOS

This commit is contained in:
Milan Lysonek 2023-09-05 13:50:41 +02:00
commit 3221fc5738

View file

@ -52,7 +52,7 @@ rlJournalStart
fi
rlFetchSrcForInstalled $PACKAGE
if rlIsFedora || rlIsRHEL ">=8"; then
if rlIsFedora || rlIsRHEL ">=8" || rlIsCentOS ">=8"; then
rlRun "dnf builddep -y $PACKAGE*"
SITE_PACKAGES=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
rlRun "pip3 install --target=$SITE_PACKAGES ruamel.yaml yamlpath prometheus-client"