git: cdcb83181ad2 - main - devel/pygobject-common: Enable make test

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Tue, 28 Oct 2025 17:25:23 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cdcb83181ad2d42aadd3c5449103e9d364b5f781

commit cdcb83181ad2d42aadd3c5449103e9d364b5f781
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-10-28 15:49:10 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-10-28 17:25:00 +0000

    devel/pygobject-common: Enable make test
---
 devel/pygobject-common/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/devel/pygobject-common/Makefile b/devel/pygobject-common/Makefile
index 9faa06e77a70..34f82088547c 100644
--- a/devel/pygobject-common/Makefile
+++ b/devel/pygobject-common/Makefile
@@ -3,11 +3,18 @@ PKGNAMESUFFIX=	-common
 
 COMMENT=	Common files for Python bindings for GObject Introspection
 
+TEST_DEPENDS=	bash:shells/bash \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
+
 NO_BUILD=	yes
 NO_ARCH=	yes
 PLIST_FILES=	include/pygobject-3.0/pygobject.h \
 		libdata/pkgconfig/pygobject-3.0.pc
 
+# tests/test_glib.py is flaky - its tests fail when run together, but pass when
+# executed separately
+TEST_ENV=	PYTEST_ADDOPTS='-k "not test_io_add_watch and not test_main_loop"'
+
 SLAVE_PORT=	common
 
 MASTERDIR=	${.CURDIR}/../../devel/py-pygobject