From: Frantisek Sumsal Date: Thu, 21 Oct 2021 16:12:06 +0000 (+0200) Subject: test: collect the coverage _before_ unmounting the rootfs X-Git-Tag: v250-rc1~454^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bc10d3109380e76db04ddf961cd5ddb7ed45122;p=thirdparty%2Fsystemd.git test: collect the coverage _before_ unmounting the rootfs d'oh! --- diff --git a/test/TEST-24-CRYPTSETUP/test.sh b/test/TEST-24-CRYPTSETUP/test.sh index 68a54924a45..96d255dd96b 100755 --- a/test/TEST-24-CRYPTSETUP/test.sh +++ b/test/TEST-24-CRYPTSETUP/test.sh @@ -20,6 +20,7 @@ check_result_qemu() { cryptsetup luksOpen "${LOOPDEV:?}p2" varcrypt <"$TESTDIR/keyfile" mount /dev/mapper/varcrypt "$initdir/var" save_journal "$initdir/var/log/journal" + check_coverage_reports "${initdir:?}" || ret=5 _umount_dir "$initdir/var" _umount_dir "$initdir" cryptsetup luksClose /dev/mapper/varcrypt @@ -28,7 +29,6 @@ check_result_qemu() { echo "${JOURNAL_LIST:-No journals were saved}" test -s "$TESTDIR/failed" && ret=1 - check_coverage_reports "${initdir:?}" || ret=5 return $ret }