support/testing: test_syslog_ng: improve commands
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Wed, 16 Oct 2019 01:09:50 +0000 (22:09 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 16 Oct 2019 19:33:04 +0000 (21:33 +0200)
commitf3c4a9e1cde3a305058ff46a3afc4e0e32a7c42f
treeee3cb71b2f6227f1eacaaa548a09aed546d37caa
parenta06cd129f869e206b66992413561b87ec4330851
support/testing: test_syslog_ng: improve commands

There is no need for double grep, so choose a better regexp. Use &&
instead of ; between commands so the sequence of commands fail faster.

Break the last sequence of commands in 2 calls run() so the proper
return code can be tested for each.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/testing/tests/package/test_syslog_ng.py