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
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user