From cad554442b35e7b1d9cb44448e8264e5dab4a8df Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Fri, 3 Mar 2023 02:49:10 -0500 Subject: [PATCH] tests: fix --pause functionality Signed-off-by: Christian Hopps --- tests/topotests/conftest.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/topotests/conftest.py b/tests/topotests/conftest.py index 2a57f6c26e..df5d066023 100755 --- a/tests/topotests/conftest.py +++ b/tests/topotests/conftest.py @@ -396,12 +396,7 @@ def pytest_runtest_setup(item): def pytest_runtest_makereport(item, call): "Log all assert messages to default logger with error level" - # Nothing happened - if call.when == "call": - pause = topotest_extra_config["pause"] - else: - pause = False - + pause = bool(item.config.getoption("--pause")) title = "unset" if call.excinfo is None: