Skip to content

Commit

Permalink
dev-ruby/aws-s3: avoid test that require network access, fixing bug 3…
Browse files Browse the repository at this point in the history
…39324

Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
graaff committed Apr 17, 2017
1 parent f07417f commit 1f4844a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dev-ruby/aws-s3/aws-s3-0.6.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ RUBY_PATCHES=(
${P}+ruby19.patch
)

all_ruby_prepare() {
# Avoid tests requiring network access, bug 339324
sed -i -e '/test_request_only_escapes_the_path_the_first_time_it_runs_and_not_subsequent_times/,/^ end/ s:^:#:' \
-e '/test_if_request_has_no_body_then_the_content_length_is_set_to_zero/,/^ end/ s:^:#:' \
test/connection_test.rb || die
}

each_ruby_test() {
${RUBY} -I. -e "Dir['test/*_test.rb'].each {|f| require f }" || die
}

0 comments on commit 1f4844a

Please sign in to comment.