From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7941C1581C1 for ; Wed, 3 Jul 2024 13:55:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DCF0EE2A11; Wed, 3 Jul 2024 13:55:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA510E2A67 for ; Wed, 3 Jul 2024 13:55:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9E30234133B for ; Wed, 3 Jul 2024 13:55:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7F2041DB9 for ; Wed, 3 Jul 2024 13:55:12 +0000 (UTC) From: "Petr Vaněk" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petr Vaněk" Message-ID: <1720014777.a3939ba31fa602295d6aee83ef8e664743b598ab.arkamar@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/borgbackup/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-backup/borgbackup/borgbackup-1.2.8.ebuild X-VCS-Directories: app-backup/borgbackup/ X-VCS-Committer: arkamar X-VCS-Committer-Name: Petr Vaněk X-VCS-Revision: a3939ba31fa602295d6aee83ef8e664743b598ab X-VCS-Branch: master Date: Wed, 3 Jul 2024 13:55:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1598a399-700d-4f0d-a455-e8699567c4e1 X-Archives-Hash: cf8032847e5da2d8241723651cc180f8 commit: a3939ba31fa602295d6aee83ef8e664743b598ab Author: Petr Vaněk gentoo org> AuthorDate: Tue Jul 2 15:46:23 2024 +0000 Commit: Petr Vaněk gentoo org> CommitDate: Wed Jul 3 13:52:57 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3939ba3 app-backup/borgbackup: wire up tests pytest parameter is based on suggestion from development manual [1]. [1] https://github.com/borgbackup/borg/blob/aada9859ff025d15010ab71352958d4639147fd7/docs/development.rst#running-the-tests-using-the-pypi-package Signed-off-by: Petr Vaněk gentoo.org> app-backup/borgbackup/borgbackup-1.2.8.ebuild | 29 ++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/app-backup/borgbackup/borgbackup-1.2.8.ebuild b/app-backup/borgbackup/borgbackup-1.2.8.ebuild index 859d227f53c9..3026af1e55e4 100644 --- a/app-backup/borgbackup/borgbackup-1.2.8.ebuild +++ b/app-backup/borgbackup/borgbackup-1.2.8.ebuild @@ -16,11 +16,6 @@ LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" -# "import file mismatch" when in S, "attempted relative import with no -# known parent package" when in BUILD_DIR/install/.../borg/testsuite. -# Needs work. -RESTRICT="test" - DEPEND=" app-arch/lz4 app-arch/zstd @@ -41,10 +36,34 @@ BDEPEND=" dev-python/cython[${PYTHON_USEDEP}] dev-python/pkgconfig[${PYTHON_USEDEP}] dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/python-dateutil[${PYTHON_USEDEP}] + ) " +EPYTEST_XDIST=1 distutils_enable_tests pytest +python_test() { + local EPYTEST_DESELECT=( + # Needs pytest-benchmark fixture + benchmark.py::test_ + + # TODO: + # Following tests fail because of additional warning in the output: + # ResourceWarning: unclosed file <_io.BufferedReader name=14> + # which is not expected in asserts + archiver.py::ArchiverTestCase::test_create_content_from_command_with_failed_command + archiver.py::ArchiverTestCase::test_create_paths_from_command_with_failed_command + archiver.py::RemoteArchiverTestCase::test_create_content_from_command_with_failed_command + archiver.py::RemoteArchiverTestCase::test_create_paths_from_command_with_failed_command + ) + + # This disables fuse releated tests + local -x BORG_FUSE_IMPL="none" + epytest --pyargs borg.testsuite +} + src_install() { distutils-r1_src_install doman docs/man/*