Skip to content

Backport v2022<-v2023 Improve reading of tests log

Walter Lozano requested to merge wip/wlozano/cursor-v2022 into apertis/v2022

Backport !18 (merged) and !21 (merged)

To read the log for the currently running test only, the current date and time is used with the --since argument of journalctl.

Sometimes, tests can run too fast one after the other and the last log entries of the previous test is at the same timestamp as the one running.

That makes the current test parse log entries from the previous test, which is unexpected, and the test fails.

Unfortunately, the --since argument of journalctl doesn't allow for more precision than the second.

To fix that, use the current journal cursor instead of time. With this approach, no entries from the previous test is read by the current test

infrastructure/apertis-issues#62 (closed)

Signed-off-by: Detlev Casanova detlev.casanova@collabora.com

Merge request reports