diff options
author | Christopher Thorn <christopher.thorn@puppet.com> | 2022-09-06 12:38:55 -0700 |
---|---|---|
committer | Christopher Thorn <christopher.thorn@puppet.com> | 2022-09-06 13:06:04 -0700 |
commit | 2e3bc7218ec9baa7d65a2e20edbe5841fef67954 (patch) | |
tree | 583fbb97aa326dad5cfdf66dd6dde5090af91c4e | |
parent | a168bfe1d0812c36ac4d65a781d3ec7b2b3a56d0 (diff) | |
download | puppet-augeas_core-2e3bc7218ec9baa7d65a2e20edbe5841fef67954.tar.gz puppet-augeas_core-2e3bc7218ec9baa7d65a2e20edbe5841fef67954.tar.bz2 |
(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.
-rw-r--r-- | spec/acceptance/tests/services_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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' |