dev-ruby/net-http: skip tests that may fail in a network sandbox

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1553
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Alfred Wingate
2026-07-28 18:03:05 +03:00
committed by Sam James
parent 7287d4ae29
commit 1bc6c9320c

View File

@@ -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
}