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 <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2022-08-20 21:45:06 +03:00
parent ed2c427f83
commit e40b713015
2 changed files with 2 additions and 2 deletions

View File

@ -363,7 +363,7 @@ def pytest_configure(config):
# Check environment now that we have config # Check environment now that we have config
if not diagnose_env(rundir): 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") @pytest.fixture(autouse=True, scope="session")

View File

@ -1293,7 +1293,7 @@ def diagnose_env_linux(rundir):
) )
continue continue
logger.warning("could not find {} in {}".format(fname, frrdir)) logger.error("could not find {} in {}".format(fname, frrdir))
ret = False ret = False
else: else:
if fname != "zebra": if fname != "zebra":