Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) Use 'hosts' not 'config' in acceptance/Rakefile #1245

Merged
merged 1 commit into from
Dec 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions acceptance/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ def beaker_test(mode = :aio, options = {})
target = ENV['TEST_TARGET'] if ENV['TEST_TARGET'] && ENV['TEST_TARGET'][-1,1] == 'a'
if target
cli = BeakerHostGenerator::CLI.new([target, '--disable-default-role'])
ENV['CONFIG'] = "tmp/#{target}-#{SecureRandom.uuid}.yaml"
ENV['HOSTS'] = "tmp/#{target}-#{SecureRandom.uuid}.yaml"
FileUtils.mkdir_p('tmp')
File.open(config, 'w') do |fh|
File.open(hosts, 'w') do |fh|
fh.print(cli.execute)
end
config_opt = "--hosts=#{config}"
elsif config
config_opt = "--hosts=#{config}"
config_opt = "--hosts=#{hosts}"
elsif hosts
config_opt = "--hosts=#{hosts}"
end

overriding_options = ENV['OPTIONS']
Expand Down