Verified Commit 7a747bbf authored by Karel Koci's avatar Karel Koci 🤘
Browse files

tests/test_bootup: do not match exactly

The issue here is that some applications such as sshd are modifying its
own arguments to store readable info in there. This breaks check for
processes but they keep its name intact and so we can match that.

The -x is replaced with -a to show process info in logs so we can
identify if we match something that is not suppose to be matched.
parent 55bcefc4
......@@ -34,7 +34,7 @@ def test_syslog_ng(client_board):
def test_processes(client_board, process):
"""Check that various essential processes are running.
"""
client_board.run(f"pgrep -x '{process}' || pgrep -x \"$(which '{process}')\"")
client_board.run(f"pgrep -x '{process}' || pgrep -a \"$(which '{process}')\"")
basic_services = [
......
Supports Markdown
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