#!/bin/sh # Refuse a runner binary that contains the test build's fake Mac worker, # which runs checks without a sandbox (internal/runner/thin # fakeworker_testbuild.go), or the test build's egress route to a fake # provider on loopback (internal/runner/egress proxy_testbuild.go). # Release builds never pass -tags testbuild. set -eu if grep -q 'equipo-fake-worker-unsandboxed-process-group' "$1"; then echo "refusing $1: it contains the test build's fake worker" >&2 exit 1 fi if grep -q 'EQUIPO_TEST_EGRESS_UPSTREAM' "$1"; then echo "refusing $1: it contains the test build's egress route" >&2 exit 1 fi