Skip to content

Commit

Permalink
Enable doc installations in centos containers
Browse files Browse the repository at this point in the history
The official CentOS docker container disables the installation of
RPM docs in the image via the yum.conf file. The added code will check
beaker host platform for EL 7 and host hypervisor for docker and
re-enable the installation of docs files.

This change is due to zabbix-server-pgsql tests failing as it relies
on a sample file provided in the RPM docs directory.
  • Loading branch information
dhollinger authored and bastelfreak committed Jun 6, 2017
1 parent 00735e5 commit b0ece0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,9 @@
RSpec.configure do |c|
# Readable test descriptions
c.formatter = :documentation
hosts.each do |host|
if host[:platform] =~ %r{el-7-x86_64} && host[:hypervisor] =~ %r{docker}
on(host, "sed -i '/nodocs/d' /etc/yum.conf")
end
end
end

0 comments on commit b0ece0a

Please sign in to comment.