Skip to main content

Module process

Module process 

Source
Expand description

Running the tools a manifest names: the ProcessRunner port. SystemProcesses starts real processes (never through a shell, headless on Windows, each tool in a process group or job object so a timeout or a cancellation ends the whole tree it started); the fake feature’s fake::FakeProcesses answers from a test’s script instead.

Structs§

Captured
What a process printed, kept: its standard output, and its last standard error lines.
Exit
How a process ended.
ProcessSpec
One process to start.
SystemProcesses
Starts real processes.

Enums§

ProcessError
Why a process couldn’t run to its end.

Traits§

ProcessRunner
Starts processes. Dropping the future of ProcessRunner::run before it resolves (a timeout, a cancelled operation) ends the process and everything it started.

Functions§

capture
Runs spec, keeping what it prints.

Type Aliases§

OnLine
Receives each line a process prints, with the output it came from.