mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
tests: fail if asan has found issues in journald
This commit is contained in:
parent
7e11a95e41
commit
998445fd8a
@ -455,6 +455,7 @@ EOF
|
||||
|
||||
check_result_nspawn() {
|
||||
local ret=1
|
||||
local journald_report=""
|
||||
[[ -e $TESTDIR/$1/testok ]] && ret=0
|
||||
[[ -f $TESTDIR/$1/failed ]] && cp -a $TESTDIR/$1/failed $TESTDIR
|
||||
cp -a $TESTDIR/$1/var/log/journal $TESTDIR
|
||||
@ -468,6 +469,12 @@ check_result_nspawn() {
|
||||
cat "$TESTDIR/$1/systemd.asan.log.1"
|
||||
ret=$(($ret+1))
|
||||
fi
|
||||
|
||||
journald_report=$(find "$TESTDIR/$1" -name "systemd-journald.asan.log*" -exec cat {} \;)
|
||||
if [[ ! -z "$journald_report" ]]; then
|
||||
printf "%s" "$journald_report"
|
||||
ret=$(($ret+1))
|
||||
fi
|
||||
fi
|
||||
|
||||
return $ret
|
||||
|
Loading…
Reference in New Issue
Block a user