Skip to content

Commit 39a7d13

Browse files
Fix variable scope issues in performance testing
1 parent e253938 commit 39a7d13

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/gemini-cli/build.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ echo "✅ Build verification passed - $FUZZER_COUNT fuzzers properly configured"
5656

5757
# Performance testing and reporting
5858
echo "Performance testing:"
59-
FUZZER_COUNT=0
59+
PERF_COUNT=0
6060

6161
for fuzzer in fuzz_json_decoder fuzz_http_header fuzz_proxy_security fuzz_mcp_decoder fuzz_url; do
6262
if [ -f "$OUT/$fuzzer" ] && [ -x "$OUT/$fuzzer" ]; then
6363
echo " $fuzzer: built and executable ✅"
64-
((FUZZER_COUNT++))
64+
((PERF_COUNT++))
6565
else
6666
echo " $fuzzer: not found or not executable ❌"
6767
fi
6868
done
6969

70-
if [ "$FUZZER_COUNT" -gt 0 ]; then
71-
echo "Performance summary: $FUZZER_COUNT fuzzers tested"
70+
if [ "$PERF_COUNT" -gt 0 ]; then
71+
echo "Performance summary: $PERF_COUNT fuzzers tested"
7272
echo "✅ All fuzzers are properly built and executable"
7373
else
7474
echo "No fuzzers found for performance testing"
@@ -86,7 +86,7 @@ OSS-Fuzz Build Report - $(date)
8686
================================
8787
Project: gemini-cli
8888
Fuzzers Compiled: $FUZZER_COUNT
89-
Average Performance: ${AVG_EXEC} exec/s
89+
Performance: $PERF_COUNT fuzzers verified
9090
Build Status: SUCCESS
9191
Security: Address sanitizer enabled
9292
EOF

0 commit comments

Comments
 (0)