mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 18:35:13 +00:00
fix: pytest not reproducible in RHEL8
Previously when we run `tests_integration_pytest.yml` in RHEL 8, device becoming unmanaged and NM `ifup` command failed to bring up the connection when running pytest with initscripts, because network scripts are deprecated in RHEL8 and they are no longer provided by default. To fix that, install `network-scripts` package to utilize the legacy `ifup` command. Signed-off-by: Wen Liang <liangwen12year@gmail.com>
This commit is contained in:
parent
a9f9c04a0b
commit
e10919ec62
1 changed files with 4 additions and 0 deletions
|
|
@ -131,6 +131,10 @@
|
|||
var: playbook_run.stdout_lines
|
||||
|
||||
- block:
|
||||
- name: install network-scripts when running pytest with initscripts
|
||||
package:
|
||||
name: network-scripts
|
||||
state: present
|
||||
- name: Run pytest with initscripts
|
||||
command: >
|
||||
pytest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue