Don't run linter if we call ./run-tests with arguments
If the developer only wants to test a single spec file, or is running special flags, the linting
info can be a bit inconvenient.
@@ -33,9 +33,8 @@ if [ "$#" -eq 0 ]; then
echo "GNU Parallel is not installed. Running the test suite in single threaded mode..."
busted "${FLAGS[@]}" spec/*_spec.lua
fi
+ # By default, also run the linter tests, because the CI cares about them.
+ ./run-lint --quiet
else
busted "${FLAGS[@]}" "$@"
fi
-
-# Also run the linter tests, because the CI cares about them.
-./run-lint --quiet
