Skip to content

Commit e821ca7

Browse files
sbryngelsonclaude
andcommitted
Capture validation output once instead of re-running on failure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 64721b1 commit e821ca7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/lint-toolchain.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ jobs:
4545
failed=0
4646
passed=0
4747
for case in examples/*/case.py; do
48-
if ./mfc.sh validate "$case" > /dev/null 2>&1; then
48+
output=$(./mfc.sh validate "$case" 2>&1)
49+
if [ $? -eq 0 ]; then
4950
passed=$((passed + 1))
5051
else
5152
echo "FAIL: $case"
52-
./mfc.sh validate "$case" 2>&1 || true
53+
echo "$output"
5354
failed=$((failed + 1))
5455
fi
5556
done

0 commit comments

Comments
 (0)