Skip to content

Commit 448de90

Browse files
dschovdye
authored andcommitted
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 <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0f5ae59 commit 448de90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/test-lib-github-workflow-markup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ finalize_test_case_output () {
4040
fixed)
4141
echo >>$github_markup_output "::notice::fixed: $this_test.$test_count $1"
4242
;;
43+
ok)
44+
# Exit without printing the "ok" tests
45+
return
46+
;;
4347
esac
4448
echo >>$github_markup_output "::group::$test_case_result: $this_test.$test_count $*"
4549
test-tool >>$github_markup_output path-utils skip-n-bytes \

0 commit comments

Comments
 (0)