Skip to content

Commit

Permalink
Merge pull request #349 from mhaskel/pe_next_fixes
Browse files Browse the repository at this point in the history
Use the correct vardir in the tests
  • Loading branch information
hunner committed Jul 13, 2015
2 parents adb17a4 + a72be83 commit 2f82480
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/acceptance/concat_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,37 @@
username = 'root'
groupname = 'system'
scriptname = 'concatfragments.rb'
vardir = default['puppetvardir']
vardir = default.puppet['vardir']
if vardir.nil? or vardir == ''
vardir = '/opt/puppetlabs/puppet/cache'
end
when 'Darwin'
username = 'root'
groupname = 'wheel'
scriptname = 'concatfragments.rb'
vardir = default['puppetvardir']
vardir = default.puppet['vardir']
if vardir.nil? or vardir == ''
vardir = '/opt/puppetlabs/puppet/cache'
end
when 'windows'
username = 'Administrator'
groupname = 'Administrators'
scriptname = 'concatfragments.rb'
result = on default, "echo #{default['puppetvardir']}"
result = on default, "echo #{default.puppet['vardir']}"
vardir = result.raw_output.chomp
when 'Solaris'
username = 'root'
groupname = 'root'
scriptname = 'concatfragments.rb'
vardir = default['puppetvardir']
vardir = host.puppet['vardir']
if vardir.nil? or vardir == ''
vardir = '/opt/puppetlabs/puppet/cache'
end
else
username = 'root'
groupname = 'root'
scriptname = 'concatfragments.rb'
vardir = default['puppetvardir']
vardir = default.puppet['vardir']
if vardir.nil? or vardir == ''
vardir = '/opt/puppetlabs/puppet/cache'
end
Expand Down

0 comments on commit 2f82480

Please sign in to comment.