mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
committed by
Sam James
parent
7287d4ae29
commit
1bc6c9320c
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user