mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
app-backup/b2: disable failing tests
Closes: https://bugs.gentoo.org/783852 Signed-off-by: Anna Vyalkova <cyber@sysrq.in>
This commit is contained in:
@@ -10,7 +10,7 @@ DISTUTILS_USE_SETUPTOOLS=rdepend
|
|||||||
|
|
||||||
inherit distutils-r1
|
inherit distutils-r1
|
||||||
|
|
||||||
DESCRIPTION="The command-line tool for BackBlaze's B2 product."
|
DESCRIPTION="Command-line tool for BackBlaze's B2 product"
|
||||||
HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool"
|
HOMEPAGE="https://github.com/Backblaze/B2_Command_Line_Tool"
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
@@ -20,7 +20,6 @@ KEYWORDS="~amd64 ~x86"
|
|||||||
|
|
||||||
PATCHES=(
|
PATCHES=(
|
||||||
"${FILESDIR}/${P}-nameclash.patch"
|
"${FILESDIR}/${P}-nameclash.patch"
|
||||||
"${FILESDIR}/${P}-skip-integration-test.patch"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
@@ -34,7 +33,15 @@ RDEPEND="
|
|||||||
|
|
||||||
distutils_enable_tests pytest
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
pkg_postinst(){
|
python_test() {
|
||||||
|
epytest \
|
||||||
|
--deselect test/integration/test_b2_command_line.py::test_integration \
|
||||||
|
--deselect test/unit/test_arg_parser.py::TestCustomArgTypes::test_parse_millis_from_float_timestamp \
|
||||||
|
--deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_exact \
|
||||||
|
--deselect test/unit/test_console_tool.py::TestConsoleTool::test_sync_exclude_if_modified_after_in_range
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
elog "The b2 executable has been renamed to backblaze2 in order to"
|
elog "The b2 executable has been renamed to backblaze2 in order to"
|
||||||
elog "avoid a name clash with b2 from boost-build"
|
elog "avoid a name clash with b2 from boost-build"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
diff --git a/test/integration/test_b2_command_line.py b/test/integration/test_b2_command_line.py
|
|
||||||
index 02b36ab..bd790ec 100644
|
|
||||||
--- a/test/integration/test_b2_command_line.py
|
|
||||||
+++ b/test/integration/test_b2_command_line.py
|
|
||||||
@@ -870,6 +870,7 @@ def main():
|
|
||||||
|
|
||||||
|
|
||||||
# TODO: rewrite to multiple tests
|
|
||||||
+@pytest.mark.skip(reason="Cannot do this in portage")
|
|
||||||
def test_integration():
|
|
||||||
application_key_id = os.environ.get('B2_TEST_APPLICATION_KEY_ID')
|
|
||||||
if application_key_id is None:
|
|
||||||
Reference in New Issue
Block a user