Skip to content
Snippets Groups Projects
Commit 2e59623a authored by Walter Lozano's avatar Walter Lozano
Browse files

Fix journalctl cursor use


Using --after-cursor in combination with -t audit does produces the expected
output since the filtering logic is applied before and after that the cursor
is moved to next valid entry. In this case, using --after-cursor will cause
the output to miss the first entry in the log.

Fix the issue by using --cursor instead.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent 82a22234
No related branches found
No related tags found
3 merge requests!20Update common subtree,!19Update common subtree,!17Fix journalctl cursor use
......@@ -132,7 +132,7 @@ if [ "${UID}" != "0" ]
then
JOURNALCTL="sudo journalctl"
fi
${JOURNALCTL} --after-cursor "${START_CURSOR}" -t audit -o cat > ${AUDIT_FILE}
${JOURNALCTL} --cursor "${START_CURSOR}" -t audit -o cat > ${AUDIT_FILE}
echo "#=== ${TEST_TITLE} ==="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment