From 9818cce9704572d75cd9efe04ef10b5b0a8a4e1a Mon Sep 17 00:00:00 2001 From: Mainak Kundu Date: Mon, 25 Nov 2024 19:58:46 -0500 Subject: [PATCH] ci: Generate Fluent journals --- tests/conftest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 8823e8180cf..95748c1d4fb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -135,7 +135,11 @@ def pytest_collection_finish(session): f.write(", ".join([f"{p}(globals())" for p in parameters])) f.write(")\n") print(f"Written {fluent_test_file}") - session.exitstatus = 5 + + +def pytest_runtestloop(session): + if session.config.getoption("--write-fluent-journals"): + pytest.exit() @pytest.fixture(autouse=True)