Skip to content

Commit 863d5a4

Browse files
committed
test: Fix Travis infinite recursion breakage
I swear, I thought I'd run the tests again before commit 89c3b15. Previously I'd had a `_COVERAGE_RUN` check in the same statement as the `TRAVIS_OS_NAME` check, but took it out. This replaces it, and should make Travis healthy and happy.
1 parent 89c3b15 commit 863d5a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ _test() {
6969
shift
7070
local tests=($(@go 'glob' "${__GO_TEST_GLOB_ARGS[@]}" "$@"))
7171
@go 'edit' "${tests[@]}"
72-
elif [[ "$TRAVIS_OS_NAME" == 'linux' ]]; then
72+
elif [[ "$_COVERAGE_RUN" != 'true' && "$TRAVIS_OS_NAME" == 'linux' ]]; then
7373
# Collect coverage by default on Travis. Doesn't seem to slow anything down
7474
# substantially.
7575
_test '--coverage' "$@"

0 commit comments

Comments
 (0)