(PDOC-144) fix recent commit's Rakefile changes when no platform is specified

This commit is contained in:
Eric Thompson 2017-02-07 01:04:18 +00:00
parent 7bc5fb7f7f
commit 564a6fb7f3
1 changed files with 5 additions and 5 deletions

View File

@ -23,17 +23,17 @@ task :acceptance do
install_type = 'aio' install_type = 'aio'
target = ENV['platform'] target = ENV['platform']
unless target =~ /type=/
puts "INFO: adding 'type=#{install_type}' to host config"
target += "{type=#{install_type}}"
end
if ! target if ! target
STDERR.puts 'TEST_TARGET environment variable is not set' STDERR.puts 'TEST_TARGET environment variable is not set'
STDERR.puts 'setting to default value of "centos7-64ma".' STDERR.puts 'setting to default value of "centos7-64ma".'
target = "centos7-64ma{type=#{install_type}}" target = "centos7-64ma{type=#{install_type}}"
end end
unless target =~ /type=/
puts "INFO: adding 'type=#{install_type}' to host config"
target += "{type=#{install_type}}"
end
cli = BeakerHostGenerator::CLI.new([target]) cli = BeakerHostGenerator::CLI.new([target])
nodeset_dir = 'spec/acceptance/nodesets' nodeset_dir = 'spec/acceptance/nodesets'
nodeset = "#{nodeset_dir}/#{target}.yml" nodeset = "#{nodeset_dir}/#{target}.yml"