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
This commit is contained in:
Colin Walters 2018-05-09 07:46:37 -07:00 committed by Atomic Bot
parent ba628da9ad
commit 605d313206
2 changed files with 6 additions and 0 deletions

View File

@ -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] }}"

View File

@ -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