summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-02-20 13:19:01 +0100
committerMichał Górny <mgorny@gentoo.org>2024-02-20 13:23:19 +0100
commit315eab0f86abf1e7e7f492ce9a73fb6143bf9a50 (patch)
tree737add0eda7a194e1503cd1ad9ba97ad57a9b445 /dev-db
parentwww-servers/tomcat: bump to 10.1.19 (diff)
downloadgentoo-315eab0f86abf1e7e7f492ce9a73fb6143bf9a50.tar.gz
gentoo-315eab0f86abf1e7e7f492ce9a73fb6143bf9a50.tar.bz2
gentoo-315eab0f86abf1e7e7f492ce9a73fb6143bf9a50.zip
dev-db/pgcli: Deselect hanging tests
Bug: https://bugs.gentoo.org/925085 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/pgcli/pgcli-4.0.1-r1.ebuild (renamed from dev-db/pgcli/pgcli-4.0.1.ebuild)18
1 files changed, 16 insertions, 2 deletions
diff --git a/dev-db/pgcli/pgcli-4.0.1.ebuild b/dev-db/pgcli/pgcli-4.0.1-r1.ebuild
index 111362fa7895..510cad08ad1e 100644
--- a/dev-db/pgcli/pgcli-4.0.1.ebuild
+++ b/dev-db/pgcli/pgcli-4.0.1-r1.ebuild
@@ -26,11 +26,25 @@ RDEPEND="
dev-python/pygments[${PYTHON_USEDEP}]
dev-python/setproctitle[${PYTHON_USEDEP}]
dev-python/sqlparse[${PYTHON_USEDEP}]
- dev-python/sshtunnel[${PYTHON_USEDEP}]"
+ dev-python/sshtunnel[${PYTHON_USEDEP}]
+"
BDEPEND="
test? (
dev-db/postgresql
dev-python/mock[${PYTHON_USEDEP}]
- )"
+ )
+"
distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # hang while trying to create a keyring
+ # https://bugs.gentoo.org/925085
+ tests/test_main.py::test_pg_service_file
+ tests/test_ssh_tunnel.py::test_ssh_tunnel
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}