mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-31 09:08:08 -07:00
dev-ruby/pg: avoid calling sudo during tests
Closes: https://bugs.gentoo.org/933234 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -41,6 +41,11 @@ all_ruby_prepare() {
|
||||
-e 's/__dir__/"."/' \
|
||||
-i ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
|
||||
# Don't allow sudo calls that try to tinker with /etc/hosts (bug #933234)
|
||||
sed -e '/sudo/ s:^:#:' -i spec/helpers.rb || die
|
||||
sed -e '/refreshs DNS address while conn.reset/ s/it/xit/' \
|
||||
-i spec/pg/connection_spec.rb || die
|
||||
|
||||
# Avoid tests that assume IPv4
|
||||
sed -i -e '/expect.*hostaddr/ s:^:#:' spec/pg/connection_spec.rb || die
|
||||
|
||||
|
||||
Reference in New Issue
Block a user