From a46a1befe09633970dbfa2c569820eb8bed74ae6 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Fri, 10 Jun 2022 00:35:55 +0200 Subject: [PATCH] Skip puppet2 tests In 8d484314deded0c95af783b51898d687c28b42c9 a selection mechanism was added and in c9fec1923f75c4864a6b63d0f24b15d4c4130895 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. --- Rakefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 630b855..5693b57 100644 --- a/Rakefile +++ b/Rakefile @@ -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|