Initial commit to enable RHEL-9 gating for kdump-ananconda-addon

Resolves: rhbz1974221

Signed-off-by: xiawu <xiawu@redhat.com>
This commit is contained in:
xiawu 2021-06-18 13:00:21 +08:00
parent bcdde39d91
commit 5638dce0f3
3 changed files with 43 additions and 0 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

17
tests/runtest.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
TMPDIR="/var/tmp"
kdump_anaconda_addon_env=""
kdump_anaconda_addon_path=""
# We do this because there is no pylint in RHEL
kdump_anaconda_addon_env=$(mktemp -p "$TMPDIR/" -d -t kdump-anaconda-addon-test.XXXXXX)
# Need to use anaconda package in RHEL, so let virtualenv access system site packages
virtualenv $kdump_anaconda_addon_env --system-site-packages
# Start it and install pylint
source $kdump_anaconda_addon_env/bin/activate
pip install --ignore-installed pylint
# Run test
pushd source
make test
popd

20
tests/tests.yml Normal file
View File

@ -0,0 +1,20 @@
---
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- make
- anaconda
- virtualenv
- python3-nose
tests:
- smoke:
dir: .
run: ./runtest.sh