Skip to content
Snippets Groups Projects
Verified Commit c059fad3 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

tests/test_bootup: move syslog_ng check

This tests commonly fails because syslog-ng takes its time to create the
/var/log/messages file even when it is already running. Moving it does
not ensure that it is run later on but at least that is what happens
right now.
parent 246c4564
Branches
Tags
No related merge requests found
......@@ -12,12 +12,6 @@ from nsfarm.toolbox import service_is_running
from . import mark
@pytest.mark.deploy
def test_syslog_ng(client_board):
"""Check that syslog-ng is running by checking if there is /var/log/messages (default log output)."""
client_board.run("[ -f /var/log/messages ]")
@pytest.mark.deploy
@pytest.mark.parametrize(
"process",
......@@ -105,6 +99,13 @@ def test_services(client_board, service):
client_board.run(f"/etc/init.d/{service} enabled")
@pytest.mark.deploy
def test_syslog_ng(client_board):
"""Check that syslog-ng is running by checking if there is /var/log/messages (default log output)."""
client_board.run("ls /var/log")
client_board.run("[ -f /var/log/messages ]")
@pytest.mark.deploy
def test_lighttpd(lan1_client):
"""Test that there is access to router interface."""
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment