From 2e3bc7218ec9baa7d65a2e20edbe5841fef67954 Mon Sep 17 00:00:00 2001 From: Christopher Thorn Date: Tue, 6 Sep 2022 12:38:55 -0700 Subject: (maint) Fix Augeas testing failure for fedora36 Fedora36 has a services file with a misconfigured alias. This causes Augeas to fail to read the file. Until this is fixed upstream lets patch around it. --- spec/acceptance/tests/services_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec/acceptance/tests') diff --git a/spec/acceptance/tests/services_spec.rb b/spec/acceptance/tests/services_spec.rb index 03175e3..38cc19b 100644 --- a/spec/acceptance/tests/services_spec.rb +++ b/spec/acceptance/tests/services_spec.rb @@ -1,5 +1,10 @@ require 'spec_helper_acceptance' +# fedora36 has a malformed services entry that needs to be patched +agents.each do |agent| + on(agent, 'sed -i "s/ircd,ircu3/ircd ircu3/" /etc/services') if agent.platform.include?('fedora-36') +end + RSpec.context 'Augeas services file' do before(:all) do on agents, 'cp /etc/services /tmp/services.bak' -- cgit v1.2.3