fix(runner): isolate controlled lane verifier fixture user checks
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 49s
CD Pipeline / build-and-deploy (push) Successful in 4m31s
CD Pipeline / post-deploy-checks (push) Successful in 1m55s

This commit is contained in:
Your Name
2026-07-02 12:54:42 +08:00
parent 3f8d784698
commit 631fc785fa

View File

@@ -150,6 +150,31 @@ case "$cmd" in
;;
esac
exit 1
""",
)
_write_fake_bin(
fake_bin,
"sudo",
"""#!/usr/bin/env bash
set -euo pipefail
if [ "${1:-}" = "-n" ] && [ "${2:-}" = "-u" ]; then
shift 3
fi
exec "$@"
""",
)
_write_fake_bin(
fake_bin,
"runuser",
"""#!/usr/bin/env bash
set -euo pipefail
if [ "${1:-}" = "-u" ]; then
shift 2
fi
if [ "${1:-}" = "--" ]; then
shift
fi
exec "$@"
""",
)
_write_fake_bin(