From 23d06c96651fb561eabc172317540b4be9ec13d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 3 Mar 2018 11:20:28 +0100 Subject: [PATCH] Add test for #94 Ensure that no warnings or errors are in the journal --- tests/extern.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/extern.nix b/tests/extern.nix index f29acc2..32af471 100644 --- a/tests/extern.nix +++ b/tests/extern.nix @@ -249,5 +249,12 @@ import { }; + subtest "no warnings or errors", sub { + $server->fail("journalctl -u postfix | grep -i error"); + $server->fail("journalctl -u postfix | grep -i warning"); + $server->fail("journalctl -u dovecot2 | grep -i error"); + $server->fail("journalctl -u dovecot2 | grep -i warning"); + }; + ''; }