test: collect coverage in a couple more codepaths

Otherwise we'd miss coverage from TEST-{02,24,61}, since they don't go
through the "standard" `check_result_common` hook.

Follow-up to 7bf20e48bd.
This commit is contained in:
Frantisek Sumsal 2021-10-20 13:00:37 +02:00 committed by Luca Boccassi
parent 21f2b19cc2
commit 0b5fe54ff5
2 changed files with 3 additions and 0 deletions

View file

@ -28,6 +28,7 @@ check_result_qemu() {
echo "${JOURNAL_LIST:-No journals were saved}"
test -s "$TESTDIR/failed" && ret=1
check_coverage_reports "${initdir:?}" || ret=5
return $ret
}

View file

@ -1458,6 +1458,7 @@ check_result_nspawn_unittests() {
fi
get_bool "${TIMED_OUT:=}" && ret=1
check_coverage_reports "$workspace" || ret=5
save_journal "$workspace/var/log/journal" $ret
@ -1490,6 +1491,7 @@ check_result_qemu_unittests() {
fi
get_bool "${TIMED_OUT:=}" && ret=1
check_coverage_reports "$initdir" || ret=5
save_journal "$initdir/var/log/journal" $ret