oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

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