Skip to content

Commit

Permalink
Skip puppet2 tests
Browse files Browse the repository at this point in the history
In 8d48431 a selection mechanism was
added and in c9fec19 the syntax was
changed. However, it doesn't appear to work anymore and now no tests are
executed. This statically skips the only test that can't be executed on
Puppet < 4. We don't test that anyway so nothing is lost.
  • Loading branch information
ekohl committed Jun 9, 2022
1 parent 37e8f5c commit a46a1be
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ CLOBBER.include('Gemfile.lock')

RSpec::Core::RakeTask.new
Cucumber::Rake::Task.new(:features) do |t|
require 'puppet'
puppet_version = Puppet::version.gsub("~>","").split(".").first.to_i
tags = (2..5).select {|i| i != puppet_version}.map{|i| "--tags '@puppet#{puppet_version} and not @puppet#{i}'"}
t.cucumber_opts = tags.join(" ")
t.cucumber_opts = ['--tags "not @puppet2"']
end

Rake::TestTask.new do |test|
Expand Down

0 comments on commit a46a1be

Please sign in to comment.