Skip to content

Commit 7a23e54

Browse files
Gabriel Ionescugbionescu
authored andcommitted
tests: Return when pytest is in discovery mode
Signed-off-by: Gabriel Ionescu <[email protected]>
1 parent 7fb2e46 commit 7a23e54

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/framework/scheduler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ def pytest_runtestloop(self, session):
9494
9595
Called in the server process context.
9696
"""
97+
# Don't run tests on test discovery
98+
if session.config.option.collectonly:
99+
return True
100+
97101
max_concurrency = self.session.config.option.concurrency
98102
schedule = [
99103
{

0 commit comments

Comments
 (0)