]> git.proxmox.com Git - mirror_frr.git/commitdiff
tests: fix --pause functionality
authorChristian Hopps <chopps@labn.net>
Fri, 3 Mar 2023 07:49:10 +0000 (02:49 -0500)
committerChristian Hopps <chopps@labn.net>
Fri, 3 Mar 2023 12:19:22 +0000 (07:19 -0500)
Signed-off-by: Christian Hopps <chopps@labn.net>
tests/topotests/conftest.py

index 2a57f6c26e404cabae8b260b60df3c5994767331..df5d06602335b6984d7ff5ceb7640ce02f0b61f0 100755 (executable)
@@ -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: