From 3d923ba8a11b011a5add49dd96818746f7533cb5 Mon Sep 17 00:00:00 2001 From: Marcel Telka <marcel@telka.sk> Date: Sat, 16 Dec 2023 16:31:38 +0100 Subject: [PATCH] setup.py.mk: remove pytest-benchmark report --- make-rules/setup.py.mk | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/make-rules/setup.py.mk b/make-rules/setup.py.mk index 7ceeabf..57b190e 100644 --- a/make-rules/setup.py.mk +++ b/make-rules/setup.py.mk @@ -489,7 +489,6 @@ COMPONENT_TEST_TRANSFORMS += \ "-e 's/^\(platform sunos5 -- Python \)$(shell echo $(PYTHON_VERSION) | $(GSED) -e 's/\./\\./g')\.[0-9]\{1,\}.*\( -- .*\)/\1\$$(PYTHON_VERSION).X\2/'" COMPONENT_TEST_TRANSFORMS += "-e '/^Using --randomly-seed=[0-9]\{1,\}$$/d'" # this is random -COMPONENT_TEST_TRANSFORMS += "-e '/^benchmark: /d'" # line with version details COMPONENT_TEST_TRANSFORMS += "-e '/^plugins: /d'" # order of listed plugins could vary COMPONENT_TEST_TRANSFORMS += "-e '/^-\{1,\} coverage: /,/^$$/d'" # remove coverage report # sort list of pytest unit tests and drop percentage @@ -507,6 +506,12 @@ # Remove short test summary info for projects that run pytest with -r option COMPONENT_TEST_TRANSFORMS += "-e '/^=\{1,\} short test summary info =\{1,\}$$/,/^=/{/^=/!d}'" +# Normalize test results produced by pytest-benchmark +COMPONENT_TEST_TRANSFORMS += \ + $(if $(filter library/python/pytest-benchmark-$(subst .,,$(PYTHON_VERSION)), $(REQUIRED_PACKAGES) $(TEST_REQUIRED_PACKAGES)),"| ( \ + $(GSED) -e '/^-\{1,\} benchmark/,/^=/{/^=/!d}' \ + ) | $(COMPONENT_TEST_TRANSFORMER) -e ''") + # Normalize test results produced by pytest-xdist COMPONENT_TEST_TRANSFORMS += \ $(if $(filter library/python/pytest-xdist-$(subst .,,$(PYTHON_VERSION)), $(REQUIRED_PACKAGES) $(TEST_REQUIRED_PACKAGES)),"| ( \ -- Gitblit v1.9.3