Kill python test entirely to redure BR, it is not important (#2237692)

This commit is contained in:
Troy Dawson 2023-09-12 09:35:35 -07:00
commit 038b70e577

View file

@ -7,7 +7,7 @@
Summary: CLI Steps for Cucumber, hand-crafted for you in Aruba
Name: rubygem-%{gem_name}
Version: 0.14.14
Release: 1%{?dist}.1
Release: 1%{?dist}.2
# aruba itself is MIT
# icons in templates/images are CC-BY
# jquery.js itself is MIT or GPLv2
@ -28,8 +28,6 @@ BuildRequires: rubygem(rspec) >= 3
BuildRequires: rubygem(contracts) >= 0.9
BuildRequires: rubygem(thor) >= 0.19
%endif
# features/steps/command/shell.feature:97 # Scenario: Running python commands
BuildRequires: /usr/bin/python3
BuildArch: noarch
%description
@ -99,17 +97,10 @@ sed -i features/support/env.rb \
sed -i fixtures/cli-app/spec/spec_helper.rb \
-e "\@\$LOAD_PATH@s|\.\./\.\./lib|$(pwd)/lib|"
# /usr/bin/python is reporting deprecation warning :/
# No need to modify @requires-python (in run_commands.feature and hooks.rb)
if ! grep -q python3 features/steps/command/shell.feature
then
sed -i features/03_testing_frameworks/cucumber/steps/command/run_commands_which_require_a_shell.feature \
-e 's|python|python3|'
sed -i lib/aruba/generators/script_file.rb \
-e '\@interpreter@s|A-Z|A-Z0-9|'
sed -i features/01_getting_started_with_aruba/run_commands.feature \
-e '\@[^-]python@s|python|python3|'
fi
# Kill tests which requires python explicitly
# (to reduce BR, anyway this test is not important)
sed -i features/step_definitions/hooks.rb \
-e '\@platform.which@s|"python"|"no-python"|'
# Get rid of Bundler
sed -i Rakefile \
@ -149,6 +140,9 @@ popd
%{gem_instdir}/templates/
%changelog
* Tue Sep 12 2023 Troy Dawson <tdawson@redhat.com> - 0.14.14-1.2
- Kill python test entirely to redure BR, it is not important (#2237692)
* Thu Jan 16 2020 Troy Dawson <tdawson@redhat.com> - 0.14.14-1.1
- Remove tests until all the dependencies are in EPEL8