Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/mitmproxy/
Date: Fri, 09 Oct 2020 07:25:28
Message-Id: 1602228314.8b91c42f9c41aa14d2510d548f8e1d28f66cd3b4.juippis@gentoo
1 commit: 8b91c42f9c41aa14d2510d548f8e1d28f66cd3b4
2 Author: Matt Smith <matt <AT> offtopica <DOT> uk>
3 AuthorDate: Fri Sep 4 12:03:50 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 9 07:25:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b91c42f
7
8 net-proxy/mitmproxy: Disable flaky tests
9
10 Issue: https://github.com/mitmproxy/mitmproxy/issues/4136
11 Closes: https://bugs.gentoo.org/740336
12 Package-Manager: Portage-3.0.5, Repoman-3.0.1
13 Signed-off-by: Matt Smith <matt <AT> offtopica.uk>
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 net-proxy/mitmproxy/mitmproxy-5.2.ebuild | 16 ++++++++++++++++
17 1 file changed, 16 insertions(+)
18
19 diff --git a/net-proxy/mitmproxy/mitmproxy-5.2.ebuild b/net-proxy/mitmproxy/mitmproxy-5.2.ebuild
20 index d5ba12b4c7c..3a6b3954f6d 100644
21 --- a/net-proxy/mitmproxy/mitmproxy-5.2.ebuild
22 +++ b/net-proxy/mitmproxy/mitmproxy-5.2.ebuild
23 @@ -68,8 +68,24 @@ python_prepare_all() {
24 # remove failing test
25 sed -i 's/test_get_version/_&/g' test/mitmproxy/test_version.py || die
26
27 + # https://github.com/mitmproxy/mitmproxy/issues/4136
28 + # https://bugs.gentoo.org/740336
29 + rm test/mitmproxy/addons/test_termlog.py || die
30 +
31 # requires asynctest
32 rm test/mitmproxy/addons/test_readfile.py || die
33
34 + # Passes with OpenSSL 1.1.1g, fails with OpenSSL 1.1.1h
35 + # https://github.com/gentoo/gentoo/pull/17411#discussion_r497270699
36 + sed \
37 + -e 's/test_mode_none_should_pass_without_sni/_&/g' \
38 + -e 's/test_mode_strict_w_pemfile_should_pass/_&/g' \
39 + -e 's/test_mode_strict_w_confdir_should_pass/_&/g' \
40 + -i test/mitmproxy/net/test_tcp.py || die
41 + sed \
42 + -e 's/test_verification_w_confdir/_&/g' \
43 + -e 's/test_verification_w_pemfile/_&/g' \
44 + -i test/mitmproxy/proxy/test_server.py || die
45 +
46 distutils-r1_python_prepare_all
47 }