From: Frantisek Sumsal Date: Wed, 20 Oct 2021 11:00:37 +0000 (+0200) Subject: test: collect coverage in a couple more codepaths X-Git-Tag: v250-rc1~462 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b5fe54ff5c35849316b916bd9dc042a7a2349e1;p=thirdparty%2Fsystemd.git 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 7bf20e48bd7d641a39a14a7feb749b7e8b0fc0f6. --- diff --git a/test/TEST-24-CRYPTSETUP/test.sh b/test/TEST-24-CRYPTSETUP/test.sh index 2dd0d4ca7f0..68a54924a45 100755 --- a/test/TEST-24-CRYPTSETUP/test.sh +++ b/test/TEST-24-CRYPTSETUP/test.sh @@ -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 } diff --git a/test/test-functions b/test/test-functions index bb205cd31fe..2557d15c048 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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