Skip to content

Commit 5770315

Browse files
committed
travis-test.sh: Add usage message
If $TEST_WHICH is missing, tell the user the usage.
1 parent 8b7c850 commit 5770315

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/travis-test.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ if [[ ( ! "${TEST_WHICH:-}" ) && "${1:-}" ]]; then
1111
export TEST_WHICH="$1"
1212
fi
1313

14+
if [[ ! "${TEST_WHICH:-}" ]]; then
15+
cat <<EOT
16+
Usage: $0 \$WHICH
17+
or: TEST_WHICH=\$WHICH $0
18+
Run automated tests of editorconfig-vim
19+
20+
\$WHICH can be "core" or "plugin".
21+
EOT
22+
exit 2
23+
fi
24+
1425
if [[ "$TEST_WHICH" = 'plugin' ]]; then # test plugin
1526

1627
# If not running from Travis, do what Travis would have

0 commit comments

Comments
 (0)