]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(IAC-1771) Update acceptance test setup pdksync_IAC-1752/main/add_almalinux_8_support
authorDavid Swan <david.swan@puppet.com>
Fri, 22 Oct 2021 10:22:44 +0000 (11:22 +0100)
committerDavid Swan <david.swan@puppet.com>
Fri, 22 Oct 2021 10:22:44 +0000 (11:22 +0100)
spec/spec_helper_acceptance_local.rb

index 9d8419a6730978ddfb71a16dd73aa016eec84f17..037defc7849f61bd8bb3604a4a1c5086754adc2c 100644 (file)
@@ -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')