test: disable non supported tests
some scripts skip the test if it's not supported for that distro-version. Disable them in gitlab-ci.yml so we don't waste CI resources. To disable them, we are using the `rules` on each job with a regex pattern. Using `=~` (pattern matches) as a WHITELIST and `!~` (pattern does not match) as a BLACKLIST.
This commit is contained in:
parent
8982ab2018
commit
1873c561cf
14 changed files with 52 additions and 104 deletions
|
|
@ -40,12 +40,6 @@ function generate_certificates {
|
|||
|
||||
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
|
||||
|
||||
# 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 none
|
||||
|
||||
|
|
@ -72,12 +66,12 @@ case "${ID}" in
|
|||
;;
|
||||
*)
|
||||
echo "Unknown RHEL: ${VERSION_ID}"
|
||||
exit 0
|
||||
exit 1
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "unsupported distro: ${ID}-${VERSION_ID}"
|
||||
exit 0
|
||||
echo "$0 should be skipped on ${ID}-${VERSION_ID} check gitlab-ci.yml"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
function cleanup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue