Simon McVittie 841429b1f6 test-history: Skip test if we cannot read from the Journal
In some OS configurations, unprivileged users cannot read back messages
that they have written to the system log. This test cannot succeed if that
happens, so skip it.

In particular, if the Journal is only in-memory rather than persisted
to disk (as it was by default in Debian 10), then there are no per-user
Journal files, only a single system-wide Journal which requires privileges
to read.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Fixes: 8b05f6b3 "Add a unit test for the history command"
(cherry picked from commit 0deb80efa8642e575ae9ae28bee49d74e6c024f3)
2022-02-21 16:44:44 -06:00
..
2019-04-08 12:50:42 +00:00
2019-12-17 14:55:13 +01:00
2019-03-06 23:44:50 +00:00
2021-05-25 11:11:03 +02:00
2021-08-23 12:19:03 +02:00
2020-03-20 15:37:10 +01:00
2020-03-20 15:37:10 +01:00
2021-05-25 11:11:03 +02:00
2022-01-04 10:44:37 -08:00
2022-01-04 10:44:37 -08:00
2021-05-25 11:11:03 +02:00
2021-05-25 11:11:03 +02:00
2022-01-04 10:44:37 -08:00