Skip to main content

Module command

Module command 

Source
Expand description

Launching test commands for Zebra integration and acceptance tests.

Modulesยง

arguments ๐Ÿ”’
process_group ๐Ÿ”’
Owned Unix process groups for test commands.
to_regex
Convenience traits for converting to [Regex] and [RegexSet].

Structsยง

Arguments
Helper type to keep track of arguments for spawning a process.
ChildOutput
A demand-driven child pipe reader. Idle readers do not consume child output.
ReadResponse ๐Ÿ”’
TestChild
A test command child process.
TestOutput
Test command output logs.
TestStatus
Test command exit status information.

Enumsยง

ReadRequest ๐Ÿ”’

Constantsยง

CHILD_CLEANUP_TIMEOUT ๐Ÿ”’
Bound exit and output draining independently of an expired observation budget.
NO_MATCHES_REGEX_ITER
A CollectRegexSet iterator that never matches anything.

Traitsยง

CommandExt
Wrappers for Command methods to integrate with zebra_test.
ContextFrom
Add context to an error report
TestDirExt
Extension trait for methods on tempdir::TempDir for using it as a test directory with an arbitrary command.

Functionsยง

check_failure_regexes
Checks command output log line from cmd against a failure_regexes regex set, and returns an error if any regex matches. The line is skipped if it matches ignore_regexes.
reap_before_deadline ๐Ÿ”’
Reap only after the owned group has been retired, without an unbounded process wait.
test_cmd
Runs a command
write_to_test_logs ๐Ÿ”’
Write line to stdout, so it can be seen in the test logs.