From e4782609b23e331045003a677b041b5147b50a22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20A=2E=20Bellone?= Date: Thu, 25 Jul 2024 20:15:01 -0300 Subject: [PATCH] Corrected tests after renaming variable and changing line amount --- tests/command.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/command.bats b/tests/command.bats index 3a14fe3..044e7a4 100644 --- a/tests/command.bats +++ b/tests/command.bats @@ -237,7 +237,7 @@ DOCKER_STUB_DEFAULT_OPTIONS='--log-level error run --rm --volume \* --volume \* assert_output --partial "Failures too large to annotate" assert_output --partial "using a simplified annotation" - assert_equal "5 ${annotation_input}" "$(wc -l "${annotation_input}" | cut -f 1)" + assert_equal "6 ${annotation_input}" "$(wc -l "${annotation_input}" | cut -f 1)" unstub docker unstub du @@ -476,7 +476,7 @@ DOCKER_STUB_DEFAULT_OPTIONS='--log-level error run --rm --volume \* --volume \* @test "can customize skipped tests variable" { export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS="junits/*.xml" - export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_SKIPPED_FORMAT="whatever" + export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SKIPPED="true" stub mktemp \ "-d \* : mkdir -p '$artifacts_tmp'; echo '$artifacts_tmp'" \ @@ -487,7 +487,7 @@ DOCKER_STUB_DEFAULT_OPTIONS='--log-level error run --rm --volume \* --volume \* "annotate --context \* --style \* : cat >'${annotation_input}'; echo Annotation added with context \$3 and style \$5, content saved" stub docker \ - "--log-level error run --rm --volume \* --volume \* --env \* --env \* --env \* --env BUILDKITE_PLUGIN_JUNIT_ANNOTATE_SKIPPED_FORMAT='whatever' \* ruby /src/bin/annotate /junits : cat tests/2-tests-1-failure.output && exit 64" + "--log-level error run --rm --volume \* --volume \* --env \* --env \* --env \* --env BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SKIPPED='true' \* ruby /src/bin/annotate /junits : cat tests/2-tests-1-failure.output && exit 64" run "$PWD/hooks/command"