From: Donatas Abraitis Date: Sat, 20 Aug 2022 18:45:06 +0000 (+0300) Subject: tests: Log as error if some of the daemons are missing X-Git-Tag: base_8.4~107^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e40b71301576f933867dd36c14f0049267f15fd4;p=mirror%2Ffrr.git tests: Log as error if some of the daemons are missing Also print runtime directory for topotests if the error occurs. Signed-off-by: Donatas Abraitis --- diff --git a/tests/topotests/conftest.py b/tests/topotests/conftest.py index 120a3e82e4..f79ca71a64 100755 --- a/tests/topotests/conftest.py +++ b/tests/topotests/conftest.py @@ -363,7 +363,7 @@ def pytest_configure(config): # Check environment now that we have config if not diagnose_env(rundir): - pytest.exit("environment has errors, please read the logs") + pytest.exit("environment has errors, please read the logs in %s" % rundir) @pytest.fixture(autouse=True, scope="session") diff --git a/tests/topotests/lib/topogen.py b/tests/topotests/lib/topogen.py index c51a187f28..04712eda87 100644 --- a/tests/topotests/lib/topogen.py +++ b/tests/topotests/lib/topogen.py @@ -1293,7 +1293,7 @@ def diagnose_env_linux(rundir): ) continue - logger.warning("could not find {} in {}".format(fname, frrdir)) + logger.error("could not find {} in {}".format(fname, frrdir)) ret = False else: if fname != "zebra":