fix(supabase): R5.5 round 2 nits, e2e INIT_CWD, final error wording
This commit is contained in:
1 parent
56593af25c
commit
fad85c0f92
4 files changed
+6
-7
No files matched your search
@@ -15,9 +15,9 @@ ALLOWED_RE='^FLOOR SUPPRESS \.claude/audits/[^:]+\.md:[0-9]+ '
|
||||
# counted as a new finding. Anything else outside ALLOWED_RE fails.
|
||||
DECLARED_RE='^FLOOR STUB \.claude/memory/evals\.md:205 '
|
||||
|
||||
# rc 0: every finding is requalified; rc 1: at least one real finding remains.
|
||||
# rc 0: every finding is requalified or the declared one; rc 1: a real finding remains.
|
||||
classify() {
|
||||
local report="$1" total requalified remaining
|
||||
local report="$1" total requalified remaining declared
|
||||
total=$(grep -c '^FLOOR [A-Z_]* ' "$report")
|
||||
requalified=$(grep -cE "$ALLOWED_RE" "$report")
|
||||
declared=$(grep -E "$DECLARED_RE" "$report")
|
||||
|
||||
@@ -27,7 +27,7 @@ expect() {
|
||||
local name=$1 want=$2 url=$3 key=$4; shift 4
|
||||
local out rc
|
||||
# Keys go through the environment of the binary and grep's pattern file, never on an argv.
|
||||
out=$(unset FAUNOSTEO_DEV_HOST; SUPABASE_URL="$url" SUPABASE_SERVICE_ROLE_KEY="$key" "$BIN" "$@" 2>&1); rc=$?
|
||||
out=$(unset FAUNOSTEO_DEV_HOST INIT_CWD; SUPABASE_URL="$url" SUPABASE_SERVICE_ROLE_KEY="$key" "$BIN" "$@" 2>&1); rc=$?
|
||||
LAST=$out
|
||||
if [ "$rc" -eq "$want" ] && ! grep -qF -f <(printf '%s\n' "$key" "$SERVICE" "$ANON") <<<"$out"; then
|
||||
echo "PASS $name (exit $rc)"
|
||||
|
||||
Reference in new issue
Block a user