test: collect the coverage _before_ unmounting the rootfs

d'oh!
This commit is contained in:
Frantisek Sumsal 2021-10-21 18:12:06 +02:00
parent 02d7e73013
commit 9bc10d3109

View file

@ -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
}