3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tests/radicale: be a bit more permissive when matching logs

With the systemd update to v242 five lines are not longer sufficient to
verify that the storage was verified. In order to reduce future test
failures increasing it to 10 lines sounds like a sane amount.
This commit is contained in:
Andreas Rammhold 2019-05-10 20:28:18 +02:00
parent 1f03f6fc43
commit 4743ad7392
No known key found for this signature in database
GPG key ID: 74908259861E8386

View file

@ -85,7 +85,7 @@ in
$radicale->succeed('mv /tmp/collections-new/collection-root /tmp/collections');
$radicale->succeed('${switchToConfig "radicale2_verify"} >&2');
$radicale->waitUntilFails('systemctl status radicale');
my ($retcode, $logs) = $radicale->execute('journalctl -u radicale -n 5');
my ($retcode, $logs) = $radicale->execute('journalctl -u radicale -n 10');
if ($retcode != 0 || index($logs, 'Verifying storage') == -1) {
die "Radicale 2 didn't verify storage"
}