Skip to content

Commit 3d67816

Browse files
committed
only lint on test success
1 parent e03cdbd commit 3d67816

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/aitest.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,13 @@ run_tests() {
196196
fi
197197
fi
198198

199-
# Always run lint
200-
log "Running lint..."
201-
if ! lint_output=$(make lint 2>&1); then
202-
failed=true
203-
output+="=== LINT FAILURES ===\n$lint_output\n\n"
199+
# Only run lint if tests succeeded to avoid overwhelming context
200+
if [[ "$failed" == "false" ]]; then
201+
log "Running lint..."
202+
if ! lint_output=$(make lint 2>&1); then
203+
failed=true
204+
output+="=== LINT FAILURES ===\n$lint_output\n\n"
205+
fi
204206
fi
205207

206208
if [[ "$failed" == "true" ]]; then

0 commit comments

Comments
 (0)