diff --git a/tests/run.bats b/tests/run.bats index ec6d9af..ba6817e 100644 --- a/tests/run.bats +++ b/tests/run.bats @@ -8,7 +8,7 @@ load '/usr/local/lib/bats/load.bash' export BUILDKITE_PLUGIN_SHELLCHECK_FILES_0="tests/testdata/test.sh" stub docker \ - "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck tests/testdata/test.sh : echo testing test.sh" + "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --color=always tests/testdata/test.sh : echo testing test.sh" run "$PWD/hooks/command" @@ -24,7 +24,7 @@ load '/usr/local/lib/bats/load.bash' export BUILDKITE_PLUGIN_SHELLCHECK_FILES_2="missing" stub docker \ - "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck tests/testdata/test.sh tests/testdata/subdir/llamas.sh tests/testdata/subdir/shell\ with\ space.sh' : echo testing test.sh" + "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --color=always tests/testdata/test.sh tests/testdata/subdir/llamas.sh tests/testdata/subdir/shell\ with\ space.sh' : echo testing test.sh" run "$PWD/hooks/command" @@ -39,7 +39,7 @@ load '/usr/local/lib/bats/load.bash' export BUILDKITE_PLUGIN_SHELLCHECK_OPTIONS_0="--exclude=SC2086" stub docker \ - "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --exclude=SC2086 tests/testdata/subdir/llamas.sh : echo testing llamas.sh" + "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --color=always --exclude=SC2086 tests/testdata/subdir/llamas.sh : echo testing llamas.sh" run "$PWD/hooks/command" @@ -56,7 +56,7 @@ load '/usr/local/lib/bats/load.bash' export BUILDKITE_PLUGIN_SHELLCHECK_OPTIONS_2="-x" stub docker \ - "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --exclude=SC2086 --format=gcc -x tests/testdata/subdir/llamas.sh : echo testing llamas.sh" + "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --color=always --exclude=SC2086 --format=gcc -x tests/testdata/subdir/llamas.sh : echo testing llamas.sh" run "$PWD/hooks/command" @@ -75,7 +75,7 @@ load '/usr/local/lib/bats/load.bash' export BUILDKITE_PLUGIN_SHELLCHECK_OPTIONS_2="-x" stub docker \ - "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --exclude=SC2086 --format=gcc -x tests/testdata/test.sh tests/testdata/subdir/llamas.sh tests/testdata/subdir/shell\ with\ space.sh' : echo testing test.sh" + "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --color=always --exclude=SC2086 --format=gcc -x tests/testdata/test.sh tests/testdata/subdir/llamas.sh tests/testdata/subdir/shell\ with\ space.sh' : echo testing test.sh" run "$PWD/hooks/command" @@ -89,7 +89,7 @@ load '/usr/local/lib/bats/load.bash' export BUILDKITE_PLUGIN_SHELLCHECK_FILES_0="tests/testdata/subdir/llamas.sh" stub docker \ - "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck tests/testdata/test.sh tests/testdata/subdir/llamas.sh tests/testdata/subdir/shell\ with\ space.sh' : echo shellcheck failed; exit 1" + "run --rm -v $PWD:/mnt --workdir /mnt koalaman/shellcheck --color=always tests/testdata/test.sh tests/testdata/subdir/llamas.sh tests/testdata/subdir/shell\ with\ space.sh' : echo shellcheck failed; exit 1" run "$PWD/hooks/command"