From: Evgeny Vereshchagin Date: Sun, 23 Dec 2018 14:30:41 +0000 (+0100) Subject: tests: fail if asan has found issues in journald X-Git-Tag: v241-rc1~114^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=998445fd8a5357f51dfd9e68548c5c5b862a273c;p=thirdparty%2Fsystemd.git tests: fail if asan has found issues in journald --- diff --git a/test/test-functions b/test/test-functions index 9aa99140cd7..350cb4ff21e 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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