Skip to content

Commit

Permalink
travis-test.sh: Add usage message
Browse files Browse the repository at this point in the history
If $TEST_WHICH is missing, tell the user the usage.
  • Loading branch information
cxw42 committed Jan 22, 2022
1 parent 8b7c850 commit 5770315
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/travis-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ if [[ ( ! "${TEST_WHICH:-}" ) && "${1:-}" ]]; then
export TEST_WHICH="$1"
fi

if [[ ! "${TEST_WHICH:-}" ]]; then
cat <<EOT
Usage: $0 \$WHICH
or: TEST_WHICH=\$WHICH $0
Run automated tests of editorconfig-vim
\$WHICH can be "core" or "plugin".
EOT
exit 2
fi

if [[ "$TEST_WHICH" = 'plugin' ]]; then # test plugin

# If not running from Travis, do what Travis would have
Expand Down

0 comments on commit 5770315

Please sign in to comment.