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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DB7C1158018 for ; Sat, 2 Oct 2021 11:40:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0576E0877; Sat, 2 Oct 2021 11:39:59 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9F0F3E0875 for ; Sat, 2 Oct 2021 11:39:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4BECF342C50 for ; Sat, 2 Oct 2021 11:39:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D2A5211C for ; Sat, 2 Oct 2021 11:39:56 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1633174773.6da7547c74c70d5edb361414269976709f162d3e.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mongoengine/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/mongoengine/mongoengine-0.23.1.ebuild X-VCS-Directories: dev-python/mongoengine/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 6da7547c74c70d5edb361414269976709f162d3e X-VCS-Branch: master Date: Sat, 2 Oct 2021 11:39:56 +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: b7e6cc5d-df22-4c6c-b177-96a08662fbbe X-Archives-Hash: bfe52e928a9f77274219484c1ab5fae9 commit: 6da7547c74c70d5edb361414269976709f162d3e Author: Arthur Zamarin gentoo org> AuthorDate: Sat Oct 2 11:28:43 2021 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Sat Oct 2 11:39:33 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6da7547c dev-python/mongoengine: enable py3.10, cleanup testing - use EPYTEST_DESELECT for disabling tests - in case loading mongod fails, instead of redirecting to log file, output it, to make it easier sending build.log with all info Signed-off-by: Arthur Zamarin gentoo.org> dev-python/mongoengine/mongoengine-0.23.1.ebuild | 48 ++++++++++++------------ 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/dev-python/mongoengine/mongoengine-0.23.1.ebuild b/dev-python/mongoengine/mongoengine-0.23.1.ebuild index 8bc583611f9..299f1c98034 100644 --- a/dev-python/mongoengine/mongoengine-0.23.1.ebuild +++ b/dev-python/mongoengine/mongoengine-0.23.1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} ) +PYTHON_COMPAT=( python3_{8..10} ) inherit distutils-r1 DESCRIPTION="A Python Object-Document-Mapper for working with MongoDB" @@ -25,48 +25,46 @@ BDEPEND=" distutils_enable_tests pytest -src_prepare() { - # TODO: investigate - sed -e 's:test_covered_index:_&:' \ - -i tests/document/test_indexes.py || die - # no $eval - sed -e 's:test_exec_js_field_sub:_&:' \ - -e 's:test_exec_js_query:_&:' \ - -e 's:test_item_frequencies_normalize:_&:' \ - -e 's:test_item_frequencies_with_0_values:_&:' \ - -e 's:test_item_frequencies_with_False_values:_&:' \ - -e 's:test_item_frequencies_with_null_embedded:_&:' \ - -i tests/queryset/test_queryset.py || die - # TODO: investigate (wrong order? bad comparison?) - sed -e 's:test_distinct_ListField_EmbeddedDocumentField:_&:' \ - -i tests/queryset/test_queryset.py || die - - distutils-r1_src_prepare -} - python_test() { + local EPYTEST_DESELECT=( + # TODO: investigate + tests/document/test_indexes.py::TestIndexes::test_collation + tests/document/test_indexes.py::TestIndexes::test_covered_index + tests/document/test_indexes.py::TestIndexes::test_create_geohaystack_index + # no $eval + tests/queryset/test_queryset.py::TestQueryset::test_exec_js_query + tests/queryset/test_queryset.py::TestQueryset::test_exec_js_field_sub + tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_normalize + tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_0_values + tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_False_values + tests/queryset/test_queryset.py::TestQueryset::test_item_frequencies_with_null_embedded + # TODO: investigate (wrong order? bad comparison?) + tests/queryset/test_queryset.py::TestQueryset::test_distinct_ListField_EmbeddedDocumentField + ) + local dbpath=${TMPDIR}/mongo.db local logpath=${TMPDIR}/mongod.log + local DB_PORT=27017 mkdir -p "${dbpath}" || die ebegin "Trying to start mongod on port ${DB_PORT}" LC_ALL=C \ mongod --dbpath "${dbpath}" --nojournal \ - --bind_ip 127.0.0.1 --port 27017 \ + --bind_ip 127.0.0.1 --port ${DB_PORT} \ --unixSocketPrefix "${TMPDIR}" \ --logpath "${logpath}" --fork || die sleep 2 # Now we need to check if the server actually started... - if [[ -S "${TMPDIR}"/mongodb-27017.sock ]]; then + if [[ -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then # yay! eend 0 else eend 1 - eerror "Unable to start mongod for tests. See the server log:" - eerror " ${logpath}" - die "Unable to start mongod for tests." + eerror "Unable to start mongod for tests. Here is the server log:" + cat "${logpath}" + die "Unable to start mongod for tests" fi local failed