From 8bcec18e25b44971f2d00a0fc9fc8d6bdbb84456 Mon Sep 17 00:00:00 2001 From: Lukasz Mrugala Date: Mon, 15 Jan 2024 13:30:36 +0000 Subject: [PATCH] scripts: tests: blackbox noclearout mark warning removal Currently, the noclearout pytest mark generates warnings because it is not registered. This commit adds its registration in the relevant conftest. Signed-off-by: Lukasz Mrugala --- scripts/tests/twister_blackbox/conftest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/tests/twister_blackbox/conftest.py b/scripts/tests/twister_blackbox/conftest.py index 95fd0b3338a..11429319b96 100644 --- a/scripts/tests/twister_blackbox/conftest.py +++ b/scripts/tests/twister_blackbox/conftest.py @@ -23,6 +23,9 @@ sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts")) testsuite_filename_mock = mock.PropertyMock(return_value='test_data.yaml') +def pytest_configure(config): + config.addinivalue_line("markers", "noclearout: disable the provide_out autouse fixture") + @pytest.fixture(name='zephyr_base') def zephyr_base_directory(): return ZEPHYR_BASE