From 1bc6c9320cbca448da232e65854a86067b06ac84 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Tue, 28 Jul 2026 18:03:05 +0300 Subject: [PATCH] dev-ruby/net-http: skip tests that may fail in a network sandbox Signed-off-by: Alfred Wingate Part-of: https://codeberg.org/gentoo/gentoo/pulls/1553 Signed-off-by: Sam James --- dev-ruby/net-http/net-http-0.9.1.ebuild | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dev-ruby/net-http/net-http-0.9.1.ebuild b/dev-ruby/net-http/net-http-0.9.1.ebuild index 9812406fa7922..9e4826fb430cb 100644 --- a/dev-ruby/net-http/net-http-0.9.1.ebuild +++ b/dev-ruby/net-http/net-http-0.9.1.ebuild @@ -32,4 +32,13 @@ all_ruby_prepare() { -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \ -e 's/git ls-files -z/find * -print0/' \ -i ${RUBY_FAKEGEM_GEMSPEC} || die + + # May fail in a network sandbox + sed -e '/def test_proxy_address_ENV$/,/^ end/ s:^:#:' \ + -e '/def test_proxy_eh_ENV$/,/^ end/ s:^:#:' \ + -e '/def test_proxy_eh_ENV_no_proxy$/,/^ end/ s:^:#:' \ + -e '/def test_proxy_eh_ENV_with_urlencoded_user$/,/^ end/ s:^:#:' \ + -e '/def test_proxy_eh_ENV_with_user$/,/^ end/ s:^:#:' \ + -e '/def test_proxy_port_ENV$/,/^ end/ s:^:#:' \ + -i test/net/http/test_http.rb || die }