Skip to content
Snippets Groups Projects
Unverified Commit 2d51b818 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

test: disable some tests on Linux portable ruby.

parent e3ee64a5
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ describe "Homebrew.install_args" do
it_behaves_like "parseable arguments"
end
describe "brew install", :integration_test do
describe "brew install", :integration_test, :needs_no_bad_linux_portable_ruby do
it "installs formulae" do
setup_test_formula "testball1"
......
......@@ -6,7 +6,7 @@ describe "Homebrew.migrate_args" do
it_behaves_like "parseable arguments"
end
describe "brew migrate", :integration_test do
describe "brew migrate", :integration_test, :needs_no_bad_linux_portable_ruby do
it "migrates a renamed Formula" do
setup_test_formula "testball1"
setup_test_formula "testball2"
......
......@@ -7,7 +7,7 @@ describe "Homebrew.reinstall_args" do
it_behaves_like "parseable arguments"
end
describe "brew reinstall", :integration_test do
describe "brew reinstall", :integration_test, :needs_no_bad_linux_portable_ruby do
it "reinstalls a Formula" do
install_test_formula "testball"
foo_dir = HOMEBREW_CELLAR/"testball/0.1/bin"
......
......@@ -6,7 +6,7 @@ describe "Homebrew.upgrade_args" do
it_behaves_like "parseable arguments"
end
describe "brew upgrade", :integration_test do
describe "brew upgrade", :integration_test, :needs_no_bad_linux_portable_ruby do
it "upgrades a Formula and cleans up old versions" do
setup_test_formula "testball"
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
......
......@@ -6,7 +6,7 @@ describe "Homebrew.ruby_args" do
it_behaves_like "parseable arguments"
end
describe "brew ruby", :integration_test do
describe "brew ruby", :integration_test, :needs_no_bad_linux_portable_ruby do
it "executes ruby code with Homebrew's libraries loaded" do
expect { brew "ruby", "-e", "exit 0" }
.to be_a_success
......
......@@ -6,7 +6,7 @@ describe "Homebrew.test_args" do
it_behaves_like "parseable arguments"
end
describe "brew test", :integration_test do
describe "brew test", :integration_test, :needs_no_bad_linux_portable_ruby do
it "tests a given Formula" do
install_test_formula "testball", <<~'RUBY'
test do
......
......@@ -132,6 +132,10 @@ RSpec.configure do |config|
skip "unzip not installed." unless which("unzip")
end
config.before(:each, :needs_no_bad_linux_portable_ruby) do
skip "using Linux portable-ruby." if OS.linux? && RUBY_PATH.to_s.end_with?("portable-ruby/2.6.3/bin/ruby")
end
config.around do |example|
def find_files
Find.find(TEST_TMPDIR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment