diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-06-02 08:39:51 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-06-02 08:39:51 +0200 |
commit | ab92e93f7e3bf5cdbb2aafbe64f05c0df285c3f5 (patch) | |
tree | 6295dbe391e3db52c2d49640a5732e94e79aa664 /dev-ruby/pg | |
parent | dev-ruby/jbuilder: drop 2.11.5 (diff) | |
download | gentoo-ab92e93f7e3bf5cdbb2aafbe64f05c0df285c3f5.tar.gz gentoo-ab92e93f7e3bf5cdbb2aafbe64f05c0df285c3f5.tar.bz2 gentoo-ab92e93f7e3bf5cdbb2aafbe64f05c0df285c3f5.zip |
dev-ruby/pg: avoid calling sudo during tests
Closes: https://bugs.gentoo.org/933234
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/pg')
-rw-r--r-- | dev-ruby/pg/pg-1.5.6.ebuild | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dev-ruby/pg/pg-1.5.6.ebuild b/dev-ruby/pg/pg-1.5.6.ebuild index 2f148b514659..0233cb967774 100644 --- a/dev-ruby/pg/pg-1.5.6.ebuild +++ b/dev-ruby/pg/pg-1.5.6.ebuild @@ -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 |