pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/py-Glances
Module Name: pkgsrc
Committed By: fox
Date: Sun Nov 29 18:01:10 UTC 2026
Modified Files:
pkgsrc/sysutils/py-Glances: Makefile
Log Message:
sysutils/py-Glances: Skip tests that cannot pass in pkgsrc
Deselect the tests that need chevron or pySMART, neither of which is
packaged, and, on platforms other than Linux, the nl80211 tests that
need netlink sockets.
On NetBSD and OpenBSD also deselect test_phys_core_returns_int.
psutil cannot count physical cores there and documents
cpu_count(logical=False) as always None.
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 pkgsrc/sysutils/py-Glances/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/sysutils/py-Glances/Makefile
diff -u pkgsrc/sysutils/py-Glances/Makefile:1.60 pkgsrc/sysutils/py-Glances/Makefile:1.61
--- pkgsrc/sysutils/py-Glances/Makefile:1.60 Sun Nov 29 17:24:05 2026
+++ pkgsrc/sysutils/py-Glances/Makefile Sun Nov 29 18:01:10 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.60 2026/11/29 17:24:05 fox Exp $
+# $NetBSD: Makefile,v 1.61 2026/11/29 18:01:10 fox Exp $
DISTNAME= glances-4.5.9
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/g/G/}
@@ -30,8 +30,32 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-uvicorn-[0
# for testing
ALLOW_NETWORK_ACCESS= yes
TEST_ENV+= PYTHONPATH=${WRKSRC}
+# chevron is not packaged
+SKIP_TESTS+= test_actions_sanitize.py::TestActionsArgumentInjection
+SKIP_TESTS+= test_actions_sanitize.py::TestActionsRunIntegration::test_run_sanitizes_pipe_in_mustache
+SKIP_TESTS+= test_actions_sanitize.py::TestActionsRunIntegration::test_run_preserves_template_operators
+SKIP_TESTS+= test_actions_sanitize.py::TestActionsRunIntegration::test_run_preserves_template_redirect
+SKIP_TESTS+= test_actions_sanitize.py::TestActionsRunIntegration::test_run_preserves_template_chain
+SKIP_TESTS+= test_actions_sanitize.py::TestActionsRunIntegration::test_run_sanitizes_cmdline_section
+# pySMART is not packaged
+SKIP_TESTS+= test_plugin_smart.py::test_missing_smartctl_returns_no_device
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} != "Linux"
+# netlink is Linux only
+SKIP_TESTS+= test_plugin_wifi_nl80211.py::test_station_signals_reads_associated_station_interfaces
+SKIP_TESTS+= test_plugin_wifi_nl80211.py::test_station_without_signal_is_left_out
+SKIP_TESTS+= test_plugin_wifi_nl80211.py::test_interface_vanishing_between_requests_is_skipped
+SKIP_TESTS+= test_plugin_wifi_nl80211.py::test_other_station_errors_propagate
+SKIP_TESTS+= test_plugin_wifi_nl80211.py::test_no_wireless_hardware_is_empty_not_unavailable
+.endif
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD"
+# psutil cannot count physical cores on these platforms and documents
+# cpu_count(logical=False) as always None there;
+SKIP_TESTS+= test_plugin_load.py::TestLoadHelperFunctions::test_phys_core_returns_int
+.endif
+TEST_ENV+= PYTEST_ADDOPTS=${SKIP_TESTS:S,^,--deselect tests/,:Q}
# as of 4.5.9
-# 22 failed, 1011 passed, 40 skipped
+# 1011 passed, 40 skipped, 22 deselected
USE_LANGUAGES= # none
Home |
Main Index |
Thread Index |
Old Index