From 80d88ce4071a1f97341d2fba6a690a4f7a1c2178 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Wed, 31 Dec 2025 17:20:32 -0800 Subject: [PATCH] functional2/pyproject.toml: clarify pytest `norecursedirs` setting I was pretty confused by this when I saw it, not realizing that `build` meant `tests/functional2/build` and not the top-level Meson `build` directory. Change-Id: I4865f196e5bf029419c6b488e78cbfb46a6a6964 --- tests/functional2/pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/functional2/pyproject.toml b/tests/functional2/pyproject.toml index 0904083ed..2736de012 100644 --- a/tests/functional2/pyproject.toml +++ b/tests/functional2/pyproject.toml @@ -25,7 +25,15 @@ log_cli_level = "INFO" log_cli_format = "%(asctime)s [%(levelname)8s] [%(name)s] %(message)s" log_cli_date_format = "%Y-%m-%dT%H:%M:%SZ" -# pytest defaults exclude a whole lot more that we want to include. like `build` +# By default, Pytest attempts to helpfully exclude searching for tests in +# `build` directories. +# +# Unfortunately, we have a directory of tests named `build` in this directory +# (not to be confused with the top-level Meson `build` directory; +# `tests/functional2/build/` != `build/`). +# +# These are glob expressions. +# See: https://docs.pytest.org/en/stable/reference/reference.html#confval-norecursedirs norecursedirs = [ '.*' ] [tool.ruff]