Skip to content
Snippets Groups Projects

Update common subtree

Merged Walter Lozano requested to merge wip/wlozano/common-update-v2022 into apertis/v2022
1 file
+ 9
3
Compare changes
  • Side-by-side
  • Inline
+ 9
3
@@ -73,8 +73,8 @@ fi
TMP_DIR=$(mktemp -d)
trap "rm -rf $TMP_DIR; exit" EXIT
# Log start time
START_TIME=$(date +"%F %T")
# Log start cursor
START_CURSOR="$(journalctl -t audit --output-fields=__CURSOR --output=json -n1 | sed 's/.*\"__CURSOR\":\"\([^\"]*\)\".*/\1/')"
if [ "${LAUNCH_DBUS}" = "True" ]; then
# Start a new D-Bus session for this test
@@ -132,7 +132,13 @@ if [ "${UID}" != "0" ]
then
JOURNALCTL="sudo journalctl"
fi
${JOURNALCTL} -S "${START_TIME}" -t audit -o cat > ${AUDIT_FILE}
CURSOR_ARG=""
if [ "${START_CURSOR}" != "" ]; then
CURSOR_ARG="--after-cursor ${START_CURSOR}"
fi
${JOURNALCTL} ${CURSOR_ARG} -t audit -o cat > ${AUDIT_FILE}
echo "#=== ${TEST_TITLE} ==="
Loading