Older systemd versions, like that on EL8: systemd-239-82.el8 do not have --cursor-file option and journal check fails on those with journalctl: unrecognized option '--cursor-file=foo.
I think it would be good to have a graceful skip for those. Something like journalctl --help | grep cursor-file check ?
|
f"[ -f '{cursor_file}' ] || {invocation.guest.facts.sudo_prefix} journalctl -n 0 --show-cursor --cursor-file={cursor_file}" # noqa: E501 |
Older systemd versions, like that on EL8:
systemd-239-82.el8do not have--cursor-fileoption and journal check fails on those withjournalctl: unrecognized option '--cursor-file=foo.I think it would be good to have a graceful skip for those. Something like
journalctl --help | grep cursor-filecheck ?tmt/tmt/checks/journal.py
Line 157 in 11468c6