Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-backup/b2/, app-backup/b2/files/
Date: Wed, 05 May 2021 00:46:31
Message-Id: 1620175387.58751e4b71e505ecb7ce686045d09929f4fcbcf5.cybertailor@gentoo
1 commit: 58751e4b71e505ecb7ce686045d09929f4fcbcf5
2 Author: Anna Vyalkova <cyber <AT> sysrq <DOT> in>
3 AuthorDate: Wed May 5 00:42:48 2021 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Wed May 5 00:43:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58751e4b
7
8 app-backup/b2: disable failing tests
9
10 Closes: https://bugs.gentoo.org/783852
11 Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>
12
13 app-backup/b2/b2-2.1.0.ebuild | 13 ++++++++++---
14 app-backup/b2/files/b2-2.1.0-skip-integration-test.patch | 12 ------------
15 2 files changed, 10 insertions(+), 15 deletions(-)
16
17 diff --git a/app-backup/b2/b2-2.1.0.ebuild b/app-backup/b2/b2-2.1.0.ebuild
18 index 78feaef03..86c355f36 100644
19 --- a/app-backup/b2/b2-2.1.0.ebuild
20 +++ b/app-backup/b2/b2-2.1.0.ebuild
21 @@ -10,7 +10,7 @@ DISTUTILS_USE_SETUPTOOLS=rdepend
22
23 inherit distutils-r1
24
25 -DESCRIPTION="The command-line tool for BackBlaze's B2 product."
26 +DESCRIPTION="Command-line tool for BackBlaze's B2 product"
27 HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool"
28 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
29
30 @@ -20,7 +20,6 @@ KEYWORDS="~amd64 ~x86"
31
32 PATCHES=(
33 "${FILESDIR}/${P}-nameclash.patch"
34 - "${FILESDIR}/${P}-skip-integration-test.patch"
35 )
36
37 RDEPEND="
38 @@ -34,7 +33,15 @@ RDEPEND="
39
40 distutils_enable_tests pytest
41
42 -pkg_postinst(){
43 +python_test() {
44 + epytest \
45 + --deselect test/integration/test_b2_command_line.py::test_integration \
46 + --deselect test/unit/test_arg_parser.py::TestCustomArgTypes::test_parse_millis_from_float_timestamp \
47 + --deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_exact \
48 + --deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_in_range
49 +}
50 +
51 +pkg_postinst() {
52 elog "The b2 executable has been renamed to backblaze2 in order to"
53 elog "avoid a name clash with b2 from boost-build"
54 }
55
56 diff --git a/app-backup/b2/files/b2-2.1.0-skip-integration-test.patch b/app-backup/b2/files/b2-2.1.0-skip-integration-test.patch
57 deleted file mode 100644
58 index 40506bc9b..000000000
59 --- a/app-backup/b2/files/b2-2.1.0-skip-integration-test.patch
60 +++ /dev/null
61 @@ -1,12 +0,0 @@
62 -diff --git a/test/integration/test_b2_command_line.py b/test/integration/test_b2_command_line.py
63 -index 02b36ab..bd790ec 100644
64 ---- a/test/integration/test_b2_command_line.py
65 -+++ b/test/integration/test_b2_command_line.py
66 -@@ -870,6 +870,7 @@ def main():
67 -
68 -
69 - # TODO: rewrite to multiple tests
70 -+@×××××××××××.skip(reason="Cannot do this in portage")
71 - def test_integration():
72 - application_key_id = os.environ.get('B2_TEST_APPLICATION_KEY_ID')
73 - if application_key_id is None: