Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyftpdlib/
Date: Tue, 03 Jul 2018 13:09:49
Message-Id: 1530623366.1cf2906a2d3458bf1077ff369e0ae79b8f2fade7.sbraz@gentoo
1 commit: 1cf2906a2d3458bf1077ff369e0ae79b8f2fade7
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 3 13:08:57 2018 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 3 13:09:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cf2906a
7
8 dev-python/pyftpdlib: skip another failing test
9
10 Closes: https://bugs.gentoo.org/659786
11 Package-Manager: Portage-2.3.41, Repoman-2.3.9
12
13 dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild | 21 +++++++++++++++------
14 1 file changed, 15 insertions(+), 6 deletions(-)
15
16 diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
17 index a5c7dac5aee..a956577edbe 100644
18 --- a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
19 +++ b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
20 @@ -48,15 +48,24 @@ python_compile_all() {
21 }
22
23 python_test() {
24 - # Skip tests which sometimes fail:
25 - # https://github.com/giampaolo/pyftpdlib/issues/470
26 - # https://github.com/giampaolo/pyftpdlib/issues/471
27 - py.test --ignore ${PN}/test/test_misc.py -k \
28 - "not (test_idle_data_timeout2 or test_on_incomplete_file_received)" \
29 - || die "Tests failed with ${EPYTHON}"
30 # These tests fail when passing additional options to py.test
31 # so we need to run them separately
32 py.test ${PN}/test/test_misc.py || die "Tests failed with ${EPYTHON}"
33 + # Some of these tests tend to fail
34 + local skipped_tests=(
35 + # https://github.com/giampaolo/pyftpdlib/issues/470
36 + # https://bugs.gentoo.org/659108
37 + test_idle_data_timeout2
38 + # https://github.com/giampaolo/pyftpdlib/issues/471
39 + # https://bugs.gentoo.org/636410
40 + test_on_incomplete_file_received
41 + # https://github.com/giampaolo/pyftpdlib/issues/466
42 + # https://bugs.gentoo.org/659786
43 + test_nlst
44 + )
45 + skipped_tests=${skipped_tests[@]/%/ or}
46 + py.test --ignore ${PN}/test/test_misc.py -k "not (${skipped_tests% or})" \
47 + || die "Tests failed with ${EPYTHON}"
48 }
49
50 python_install_all() {