summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2018-05-09 07:46:37 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2018-05-09 20:59:52 +0000
commit02f3ea9d5ef05b1f26d6691ad1eae73b062c8996 (patch)
treed644b5663e40e117334a72679dcaeed5bb3b1765
parent44706430f4fa4a7a6ab520aa450d8111b5f66b1b (diff)
downloadostree-02f3ea9d5ef05b1f26d6691ad1eae73b062c8996.tar.gz
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: <try>
-rw-r--r--tests/installed/destructive-ansible.yml1
-rw-r--r--tests/installed/tasks/disable-all-rpmmd-repos.yml5
2 files changed, 6 insertions, 0 deletions
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