It starts to feels like if genuinely "misses" events "sometimes".
To illustrate I was running the "hardened and slow" version a few times.
And then I checked which of the events were found.
Modified the test to run on multiple logs after a loop, like
#!/bin/bash
LOG=$1
TPATH="/tmp/autopkgtest.cWRPFV/build.Y7S/src"
TEST_FILE="${TPATH}/test.txt"
RC=0
check_log() {
if ! grep -q "$1" $LOG; then
printf "F"
((RC=RC+1))
else
printf "."
fi
}
printf "%22s : " "${LOG}"
# accessing the NEWS file
check_log "RC\?O\? ${TPATH}/NEWS$"
# file creation
TEST_FILE=$(realpath "$TEST_FILE")
check_log "^touch.* C\?W\?O $TEST_FILE"
check_log "^touch.* C\?WO\? $TEST_FILE"
check_log "^bash(.* C\?WO\? $TEST_FILE"
# file deletion
check_log "^rm(.*): D $(dirname $TEST_FILE)$"
# dir creation
check_log "^touch(.*): + $(dirname $TEST_FILE)$"
check_log "^mkdir(.*): + $(dirname $TEST_FILE)$"
# file renaming
check_log "^mv(.*): <> $(dirname $TEST_FILE)"
# file moving
check_log "^mv(.*): < $(dirname $TEST_FILE)$"
check_log "^mv(.*): > $(dirname $TEST_FILE)/dest$"
echo " - ${RC} matches missing"
exit ${RC}
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1885188
Title:
fatrace autopkgtest failure due to rename test
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fatrace/+bug/1885188/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs