1 |
commit: 1f4844a7ef6519394e890b232e37bdbc0adf3dac |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 17 09:25:29 2017 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 17 09:25:29 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f4844a7 |
7 |
|
8 |
dev-ruby/aws-s3: avoid test that require network access, fixing bug 339324 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-ruby/aws-s3/aws-s3-0.6.3.ebuild | 7 +++++++ |
13 |
1 file changed, 7 insertions(+) |
14 |
|
15 |
diff --git a/dev-ruby/aws-s3/aws-s3-0.6.3.ebuild b/dev-ruby/aws-s3/aws-s3-0.6.3.ebuild |
16 |
index 80d9b628570..ed522409714 100644 |
17 |
--- a/dev-ruby/aws-s3/aws-s3-0.6.3.ebuild |
18 |
+++ b/dev-ruby/aws-s3/aws-s3-0.6.3.ebuild |
19 |
@@ -33,6 +33,13 @@ RUBY_PATCHES=( |
20 |
${P}+ruby19.patch |
21 |
) |
22 |
|
23 |
+all_ruby_prepare() { |
24 |
+ # Avoid tests requiring network access, bug 339324 |
25 |
+ sed -i -e '/test_request_only_escapes_the_path_the_first_time_it_runs_and_not_subsequent_times/,/^ end/ s:^:#:' \ |
26 |
+ -e '/test_if_request_has_no_body_then_the_content_length_is_set_to_zero/,/^ end/ s:^:#:' \ |
27 |
+ test/connection_test.rb || die |
28 |
+} |
29 |
+ |
30 |
each_ruby_test() { |
31 |
${RUBY} -I. -e "Dir['test/*_test.rb'].each {|f| require f }" || die |
32 |
} |