From: David Swan Date: Fri, 22 Oct 2021 10:22:44 +0000 (+0100) Subject: (IAC-1771) Update acceptance test setup X-Git-Tag: v3.3.0~3^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=8973c1d7d7554c60150513dbeff141973e87840a;p=puppet-modules%2Fpuppetlabs-firewall.git (IAC-1771) Update acceptance test setup --- diff --git a/spec/spec_helper_acceptance_local.rb b/spec/spec_helper_acceptance_local.rb index 9d8419a..037defc 100644 --- a/spec/spec_helper_acceptance_local.rb +++ b/spec/spec_helper_acceptance_local.rb @@ -59,6 +59,10 @@ RSpec.configure do |c| # To enable tests on abs/vmpooler machines just set to `true` this flag c.filter_run_excluding condition_parameter_test: false c.before :suite do + # Depmod is not availible by default on our AlmaLinux 8 docker image + if ['almalinux-8'].include?("#{fetch_os_name}-#{os[:release].to_i}") + LitmusHelper.instance.run_shell('yum install kmod -y') + end if ['centos-6', 'centos-7', 'oraclelinux-6', 'scientific-6', 'scientific-7'].include?("#{fetch_os_name}-#{os[:release].to_i}") LitmusHelper.instance.run_shell('yum update -y') LitmusHelper.instance.run_shell('depmod -a')