inner
inner
¶
Generate the scripts that run inside a slot's test container.
Two scripts per slot, both written to the shared results mount so the
container executes real files — the historical bash -c string with
its three levels of quote-escaping is gone:
- the outer script runs as root: copy the read-only source mount into a writable workspace, prove the init system matches the slot's contract, then drop to the slot's test user;
- the inner script runs as the test user: export the capability contract, bootstrap a Python 3.12 venv plus uv, sync the repo's locked dependency groups, and walk the configured phases.
Command phases abort the slot on failure (set -e); pytest phases
record the first failing exit code and keep going, so a single run
surfaces every failing suite.
TEST_UID = 1000
module-attribute
¶
outer_script(config, slot_name)
¶
Root-side container entry: workspace prep, init-system proof, user drop.
Source code in src/terok_util/matrix/inner.py
inner_script(config, slot_name, scope='all')
¶
Test-user-side flow: env contract, venv + deps, configured phases.