From b2d39ab21c5321004afad0c8154dbada06d02cf4 Mon Sep 17 00:00:00 2001 From: randypanding <66171646+randypanding@users.noreply.github.com> Date: Fri, 21 Aug 2026 21:06:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20selftest=20=E7=9A=84=20SLI=5FSELFTEST=5F?= =?UTF-8?q?DIR=20=E7=BC=BA=E7=9C=81=20'.'=EF=BC=88set=20-u=20=E4=B8=8B=20u?= =?UTF-8?q?nbound=E2=80=94=E2=80=94=E9=A6=96=E8=B7=91=E5=AE=9E=E6=B5=8B?= =?UTF-8?q?=EF=BC=9BADR-0059=20/=20.github=20#98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/sli-report.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sli-report.sh b/scripts/sli-report.sh index e411620..a20057d 100644 --- a/scripts/sli-report.sh +++ b/scripts/sli-report.sh @@ -39,7 +39,7 @@ if [[ "${1:-}" == "--self-test" ]]; then if [[ "$got" == "$want" ]]; then PASS=$((PASS+1)); echo " PASS $name"; else FAIL=$((FAIL+1)); echo " FAIL $name (want=$want got=$got)"; fi; } # T2 分母陷阱(python fixture 函数) - PY_CALC=$(python3 - "$SLI_SELFTEST_DIR" <<'PYEOF' + PY_CALC=$(python3 - "${SLI_SELFTEST_DIR:-.}" <<'PYEOF' import json, sys, os def calc(prs, merged_by_agent, reverts, p0s): merged = [p for p in prs if p.get("mergedAt")]