tasks/ci.rake in beaker-puppet-0.13.0 vs tasks/ci.rake in beaker-puppet-0.13.1

- old
+ new

@@ -151,11 +151,11 @@ task :gem => ['ci:check_env'] do beaker(:init, '--hosts', 'config/nodes/gem.yaml', '--options-file', 'config/gem/options.rb') beaker(:provision) beaker(:exec, 'pre-suite', '--pre-suite', pre_suites(:gem)) beaker(:exec, "#{File.dirname(__dir__)}/setup/gem/010_GemInstall.rb") - beaker(:destroy) + beaker(:destroy) unless ENV['OPTIONS'].include?('--preserve-hosts=always') end desc <<-EOS Run the acceptance tests against a git checkout. @@ -197,10 +197,10 @@ beaker(:provision) beaker(:exec, 'pre-suite', '--pre-suite', pre_suites(type)) beaker(:exec, 'pre-suite') beaker(:exec, ENV['TESTS']) beaker(:exec, 'post-suite') - beaker(:destroy) + beaker(:destroy) unless ENV['OPTIONS'].include?('--preserve-hosts=always') end def pre_suites(type) beaker_root = Pathname.new(File.dirname(__dir__)).relative_path_from(Pathname.new(Dir.pwd))