Skip to main content

run_gate_runner

Function run_gate_runner 

Source
pub fn run_gate_runner(
    interpreter: &Path,
    script: &Path,
    image_dir: &Path,
) -> Result<(), Error>
Expand description

Invoke a gate runner script with the given interpreter.

Runs <interpreter> <script> <image_dir> with bounded output capture and a 60-second timeout. On exit 0: returns Ok(()). On non-zero exit: returns Error::GateRunnerFailed with bounded stdout/stderr. On timeout: kills the child and returns Error::GateRunnerTimedOut.