Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2022-05-22 01:18:51 +0300
committerJunio C Hamano <gitster@pobox.com>2022-05-22 02:25:56 +0300
commit0f5ae593bea7314184608a32122da73ed559f219 (patch)
tree752383f276f829ee60153333167d4165b058977b /t/test-lib.sh
parentdab73aebd85acf6441769370f380f50619c3ebae (diff)
ci: optionally mark up output in the GitHub workflow
A couple of commands exist to spruce up the output in GitHub workflows: https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions In addition to the `::group::<label>`/`::endgroup::` commands (which we already use to structure the output of the build step better), we also use `::error::`/`::notice::` to draw the attention to test failures and to test cases that were expected to fail but didn't. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index bdb11e28ee..29640d107c 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -204,6 +204,9 @@ parse_option () {
--write-junit-xml)
. "$TEST_DIRECTORY/test-lib-junit.sh"
;;
+ --github-workflow-markup)
+ . "$TEST_DIRECTORY/test-lib-github-workflow-markup.sh"
+ ;;
--stress)
stress=t ;;
--stress=*)
@@ -1082,7 +1085,7 @@ test_start_ () {
test_count=$(($test_count+1))
maybe_setup_verbose
maybe_setup_valgrind
- start_test_case_output
+ start_test_case_output "$@"
}
test_finish_ () {