Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(e2e): fail the shared gate reporter when zero tests ran [R3-F0-0]
Alfredo Lopeze1ee789372bb
diff --git a/scripts/e2e/e2e-lib.sh b/scripts/e2e/e2e-lib.shindex 2aa2bf06d..48666de66 100755--- a/scripts/e2e/e2e-lib.sh+++ b/scripts/e2e/e2e-lib.sh@@ -843,6 +843,14 @@ print_results() {echo ""echo -e "${BOLD}Total: ${e2e_total} | ${GREEN}Pass: ${e2e_pass}${NC} | ${RED}Fail: ${e2e_fail}${NC}"echo ""+ # Zero tests executed is never success: a gate whose fixture never+ # materialized (missing Host, aborted setup, empty filter) reaches here with+ # e2e_total == 0 and, checking only e2e_fail, would print "All tests passed!"+ # over an empty result set. Assert something actually ran before green.+ if [ "$e2e_total" -eq 0 ]; then+ echo -e "${RED}${BOLD}FAIL: zero tests executed — the harness never reached a real assertion${NC}" >&2+ return 1+ fiif [ "$e2e_fail" -eq 0 ]; thenecho -e "${GREEN}${BOLD}All tests passed!${NC}"return 0