git: d778e9e90257 - main - misc/py-ag2: Update tests target and stats

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 13 Jul 2026 20:27:26 UTC
The branch main has been updated by yuri:

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

commit d778e9e902572fd3796038944008a2ddd255d0da
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-13 20:26:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-13 20:27:17 +0000

    misc/py-ag2: Update tests target and stats
---
 misc/py-ag2/Makefile | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/misc/py-ag2/Makefile b/misc/py-ag2/Makefile
index c23036497ac6..f71ccebe84e7 100644
--- a/misc/py-ag2/Makefile
+++ b/misc/py-ag2/Makefile
@@ -39,11 +39,13 @@ GH_TAGNAME=	v${DISTVERSION}
 
 NO_ARCH=	yes
 
+TEST_ENV=	${MAKE_ENV} PATH=${WRKDIR}/.bin:${PATH} \
+		PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}:${WRKSRC}
+
 # The upstream test suite requires many optional providers and network access.
 # Run only the core tests for now that pass without optional extras.
-TEST_ARGS=	--ignore=test/mcp \
-		--ignore=test/beta/tools/sandbox/adapter/test_code_adapter.py \
-		--ignore=test/beta/tools/skills/test_toolkit.py \
+TEST_ARGS=	-p no:relaxed \
+		--ignore=test/mcp \
 		test/test_import_utils.py \
 		test/test_json_utils.py \
 		test/test_llm_config.py \
@@ -63,6 +65,10 @@ TEST_ARGS=	--ignore=test/mcp \
 		test/beta \
 		test/logger
 
-# tests as of 0.14.0: 3300 passed, 424 skipped, 2 xfailed, 15 warnings in 29.66s
+pre-test:
+	@${MKDIR} ${WRKDIR}/.bin
+	@${LN} -sf ${PYTHON_CMD} ${WRKDIR}/.bin/python
+
+# tests as of 0.14.0: 3602 passed, 356 skipped, 2 xfailed, 36 warnings in 46.84s
 
 .include <bsd.port.mk>