diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2022-05-22 00:18:52 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-22 01:25:56 +0200 |
commit | 448de909a7dc0e0cc80aff6eff84de56a4c8bbfc (patch) | |
tree | 862467ec33219dde72ba7fdb084bf1f9a0ca04ca /t/test-lib-github-workflow-markup.sh | |
parent | ci: optionally mark up output in the GitHub workflow (diff) | |
download | git-448de909a7dc0e0cc80aff6eff84de56a4c8bbfc.tar.xz git-448de909a7dc0e0cc80aff6eff84de56a4c8bbfc.zip |
ci(github): skip the logs of the successful test cases
In most instances, looking at the log of failed test cases is enough to
identify the problem.
In some (rare?) instances, a previous test case that was marked as
successful actually has information pertaining to a later test case that
fails.
To allow the page to load relatively quickly, let's only show the logs
of the failed test cases to be shown. The full logs are available for
download as artifacts, should a deeper investigation become necessary.
Co-authored-by: Victoria Dye <vdye@github.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib-github-workflow-markup.sh')
-rw-r--r-- | t/test-lib-github-workflow-markup.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib-github-workflow-markup.sh b/t/test-lib-github-workflow-markup.sh index d8dc969df4..1ef0fd5ba8 100644 --- a/t/test-lib-github-workflow-markup.sh +++ b/t/test-lib-github-workflow-markup.sh @@ -40,6 +40,10 @@ finalize_test_case_output () { fixed) echo >>$github_markup_output "::notice::fixed: $this_test.$test_count $1" ;; + ok) + # Exit without printing the "ok" tests + return + ;; esac echo >>$github_markup_output "::group::$test_case_result: $this_test.$test_count $*" test-tool >>$github_markup_output path-utils skip-n-bytes \ |