From 605d3132062e1e0b35a21578adb04a5eaae8c6d4 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 9 May 2018 07:46:37 -0700 Subject: [PATCH] tests/installed: Disable all rpmmd repos For the same reason we do in the rpm-ostree tests. This also made sure the test run worked when I was offline on a plane. Closes: #1583 Approved by: jlebon --- tests/installed/destructive-ansible.yml | 1 + tests/installed/tasks/disable-all-rpmmd-repos.yml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 tests/installed/tasks/disable-all-rpmmd-repos.yml diff --git a/tests/installed/destructive-ansible.yml b/tests/installed/destructive-ansible.yml index 12ee5d52..a0e69aa1 100644 --- a/tests/installed/destructive-ansible.yml +++ b/tests/installed/destructive-ansible.yml @@ -8,6 +8,7 @@ use_git_build: True tests: "." tasks: + - import_tasks: tasks/disable-all-rpmmd-repos.yml - import_tasks: tasks/query-host.yml - set_fact: rpmostree_initial_deployment: "{{ rpmostree_status[\"deployments\"][0] }}" diff --git a/tests/installed/tasks/disable-all-rpmmd-repos.yml b/tests/installed/tasks/disable-all-rpmmd-repos.yml new file mode 100644 index 00000000..b4f2a074 --- /dev/null +++ b/tests/installed/tasks/disable-all-rpmmd-repos.yml @@ -0,0 +1,5 @@ +- name: Disable all rpmmd repos + shell: | + for x in /etc/yum.repos.d/*.repo; do + sed -i -e 's,^enabled=,enabled=0,g' $x + done