test: Fix wifi test failures

CentOS Stream build process has been moved to
https://kojihub.stream.centos.org.

Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
Wen Liang 2023-12-21 18:31:14 -05:00 committed by Richard Megginson
parent 55e953099a
commit bbdc7f77c4
2 changed files with 15 additions and 19 deletions

View file

@ -9,10 +9,8 @@
use: "{{ (__network_is_ostree | d(false)) |
ternary('ansible.posix.rhel_rpm_ostree', omit) }}"
- name: Check if can test on CentOS 8 and setup if possible
when:
- ansible_distribution_major_version == '8'
- ansible_distribution == 'CentOS'
- name: Check if can test on CentOS and setup if possible
when: ansible_distribution == 'CentOS'
block:
# It is currently too difficult to install the required kernel
# if using rpm ostree - so just skip this test
@ -21,19 +19,19 @@
when: __network_is_ostree | d(false)
# yamllint disable rule:line-length
# Even though hostapd can be installed via EPEL 8, Opportunistic Wireless Encryption
# Even though hostapd can be installed via EPEL, Opportunistic Wireless Encryption
# (OWE) has not been enabled by default. To warrant the test support on RHEL(dist-tag),
# we setup hostapd copr repo to enable OWE option.
- name: Install hostapd and mac80211_hwsim kernel module in CentOS 8
- name: Install hostapd and mac80211_hwsim kernel module in CentOS
shell: |
dnf -y copr enable liangwen12year/hostapd-owe
dnf -y install hostapd
release=$(uname -r)
tmp="${release/-//}"
tmp="${tmp/.x//x}"
dnf -y install https://koji.mbox.centos.org/pkgs/packages/kernel/$tmp/kernel-core-$release.rpm
dnf -y install https://koji.mbox.centos.org/pkgs/packages/kernel/$tmp/kernel-modules-$release.rpm
dnf -y install https://koji.mbox.centos.org/pkgs/packages/kernel/$tmp/kernel-modules-internal-$release.rpm
dnf -y install https://kojihub.stream.centos.org/kojifiles/packages/kernel/$tmp/kernel-core-$release.rpm
dnf -y install https://kojihub.stream.centos.org/kojifiles/packages/kernel/$tmp/kernel-modules-$release.rpm
dnf -y install https://kojihub.stream.centos.org/kojifiles/packages/kernel/$tmp/kernel-modules-internal-$release.rpm
changed_when: false
# yamllint enable rule:line-length

View file

@ -9,10 +9,8 @@
use: "{{ (__network_is_ostree | d(false)) |
ternary('ansible.posix.rhel_rpm_ostree', omit) }}"
- name: Configure CentOS 8 system for testing, if possible
when:
- ansible_distribution_major_version == '8'
- ansible_distribution == 'CentOS'
- name: Configure CentOS system for testing, if possible
when: ansible_distribution == 'CentOS'
block:
# It is currently too difficult to install the required kernel
# if using rpm ostree - so just skip this test
@ -21,19 +19,19 @@
when: __network_is_ostree | d(false)
# yamllint disable rule:line-length
# Even though hostapd can be installed via EPEL 8, Simultaneous Authentication
# Even though hostapd can be installed via EPEL, Simultaneous Authentication
# of Equals (SAE) has not been enabled by default. To warrant the test support
# on CentOS 8, we setup hostapd copr repo to enable SAE option.
- name: Install hostapd and mac80211_hwsim kernel module in CentOS 8
# on CentOS, we setup hostapd copr repo to enable SAE option.
- name: Install hostapd and mac80211_hwsim kernel module in CentOS
shell: |
dnf -y copr enable liangwen12year/hostapd-owe
dnf -y install hostapd
release=$(uname -r)
tmp="${release/-//}"
tmp="${tmp/.x//x}"
dnf -y install https://koji.mbox.centos.org/pkgs/packages/kernel/$tmp/kernel-core-$release.rpm
dnf -y install https://koji.mbox.centos.org/pkgs/packages/kernel/$tmp/kernel-modules-$release.rpm
dnf -y install https://koji.mbox.centos.org/pkgs/packages/kernel/$tmp/kernel-modules-internal-$release.rpm
dnf -y install https://kojihub.stream.centos.org/kojifiles/packages/kernel/$tmp/kernel-core-$release.rpm
dnf -y install https://kojihub.stream.centos.org/kojifiles/packages/kernel/$tmp/kernel-modules-$release.rpm
dnf -y install https://kojihub.stream.centos.org/kojifiles/packages/kernel/$tmp/kernel-modules-internal-$release.rpm
changed_when: false
# yamllint enable rule:line-length