]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: collect the coverage _before_ unmounting the rootfs
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 21 Oct 2021 16:12:06 +0000 (18:12 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 21 Oct 2021 16:12:06 +0000 (18:12 +0200)
d'oh!

test/TEST-24-CRYPTSETUP/test.sh

index 68a54924a456116f5a2b228978b2ae986c9914cc..96d255dd96ba953c7423c249b3a9ab2ab3835d31 100755 (executable)
@@ -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
 }