Skip to content

Commit e478260

Browse files
committed
Corrected tests after renaming variable and changing line amount
1 parent 650f509 commit e478260

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/command.bats

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ DOCKER_STUB_DEFAULT_OPTIONS='--log-level error run --rm --volume \* --volume \*
237237

238238
assert_output --partial "Failures too large to annotate"
239239
assert_output --partial "using a simplified annotation"
240-
assert_equal "5 ${annotation_input}" "$(wc -l "${annotation_input}" | cut -f 1)"
240+
assert_equal "6 ${annotation_input}" "$(wc -l "${annotation_input}" | cut -f 1)"
241241

242242
unstub docker
243243
unstub du
@@ -476,7 +476,7 @@ DOCKER_STUB_DEFAULT_OPTIONS='--log-level error run --rm --volume \* --volume \*
476476

477477
@test "can customize skipped tests variable" {
478478
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_ARTIFACTS="junits/*.xml"
479-
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_SKIPPED_FORMAT="whatever"
479+
export BUILDKITE_PLUGIN_JUNIT_ANNOTATE_REPORT_SKIPPED="true"
480480

481481
stub mktemp \
482482
"-d \* : mkdir -p '$artifacts_tmp'; echo '$artifacts_tmp'" \
@@ -487,7 +487,7 @@ DOCKER_STUB_DEFAULT_OPTIONS='--log-level error run --rm --volume \* --volume \*
487487
"annotate --context \* --style \* : cat >'${annotation_input}'; echo Annotation added with context \$3 and style \$5, content saved"
488488

489489
stub docker \
490-
"--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"
490+
"--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"
491491

492492
run "$PWD/hooks/command"
493493

0 commit comments

Comments
 (0)