tests/regression: skip satellite regression test on subscribed RHEl

This test does not bring any value when running on subscribed RHEL
machines.
This commit is contained in:
Jakub Rusz 2021-11-25 14:35:57 +01:00 committed by jrusz
parent 35f8707d59
commit c38ebb1643

View file

@ -60,12 +60,18 @@ function cleanup {
sudo systemctl stop httpd || echo "failed to stop httpd"
}
# Provision the software under tet.
/usr/libexec/osbuild-composer-test/provision.sh
source /etc/os-release
ARCH=$(uname -m)
# Skip if running on subscribed RHEL
if [[ "$ID" == rhel ]] && sudo subscription-manager status; then
echo "This test is skipped on subscribed RHEL machines."
exit 0
fi
# Provision the software under tet.
/usr/libexec/osbuild-composer-test/provision.sh
# Discover what system is installed on the runner
case "${ID}" in
"fedora")