Skip to content

Commit

Permalink
Corrected tests after renaming variable and changing line amount
Browse files Browse the repository at this point in the history
  • Loading branch information
toote committed Jul 25, 2024
1 parent 650f509 commit e478260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/command.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'" \
Expand All @@ -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"

Expand Down

0 comments on commit e478260

Please sign in to comment.