Skip to content

Commit bb731ff

Browse files
Add pytest configuration. (sonic-net#24339)
Why I did it Pytest in sonic-buildimage and submodules relies on default value of norecursedirs setting. Without the configuration file, pytest may find another one in one of the parent directories and run with an incompatible setting of norecursedirs causing test collection failures. How I did it Create an empty pytest.ini configuration file. Description for the changelog Ensure pytest runs with default value of norecursedirs Signed-off-by: Krzysztof Kościuszkiewicz <[email protected]> Signed-off-by: venu-nexthop <[email protected]>
1 parent f57af45 commit bb731ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pytest.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Configuration is deliberately left empty.
2+
# Presence of the file ensures pytest will select this directory as the rootdir.
3+
# Otherwise pytest may keep going up the directory tree and find another
4+
# configuration file.
5+
[pytest]

0 commit comments

Comments
 (0)