Skip to content

Commit 059b714

Browse files
committed
(maint) put puppet version restriction on locales spec
1 parent 504663b commit 059b714

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

spec/acceptance/locales_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'spec_helper_acceptance'
22
require 'beaker/i18n_helper'
33

4-
describe 'mysql localization', if: fact('osfamily') == 'Debian' do
4+
describe 'mysql localization', if: fact('osfamily') == 'Debian' && puppet_version =~ %r{(^4\.10\.[56789]|5\.\d\.\d)} do
55
before :all do
66
hosts.each do |host|
77
on(host, "sed -i \"96i FastGettext.locale='ja'\" /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb")

spec/spec_helper_acceptance.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
UNSUPPORTED_PLATFORMS = %w[Windows Solaris AIX].freeze
1313

14+
def puppet_version
15+
(on default, puppet('--version')).output.chomp
16+
end
17+
1418
RSpec.configure do |c|
1519
# Readable test descriptions
1620
c.formatter = :documentation

0 commit comments

Comments
 (0)