From e10919ec62ce5efbc8d405c3d25c1e45e26d6b48 Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Wed, 14 Jul 2021 17:33:00 -0400 Subject: [PATCH] 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 --- tests/playbooks/integration_pytest_python3.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/playbooks/integration_pytest_python3.yml b/tests/playbooks/integration_pytest_python3.yml index f426d60..86101a5 100644 --- a/tests/playbooks/integration_pytest_python3.yml +++ b/tests/playbooks/integration_pytest_python3.yml @@ -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