mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 02:30:52 +00:00
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:
parent
ed2c427f83
commit
e40b713015
@ -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")
|
||||||
|
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user