Skip to content

Commit

Permalink
Fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
toolmantim committed Dec 25, 2018
1 parent bb0941e commit f0070da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/run.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"

Expand All @@ -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"

Expand All @@ -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"

Expand All @@ -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"

Expand All @@ -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"

Expand Down

0 comments on commit f0070da

Please # to comment.