Skip to content

Need to extend orch to support matching multiple strings #3

@markjdb

Description

@markjdb

When running regression tests, bricoler runs QEMU or bhyve under orch, and uses the console to interact with the VM. This works fine, more or less, since the interactions are pretty simple, but we need to be able to detect kernel panics; they are unfortunately not uncommon during test suite runs.

We should probably do something like the following: when executing a command in the VM, match on panic: (%s*)\n as well as the shell prompt and set a "I-have-panicked" flag in the VM state. Relevant tasks can save info from the panic, potentially run ddb commands, etc., and save them to an output file.

At the moment, orch's match() doesn't support matching on multiple strings the way expect does. It seems this should be straightforward to implement, but it needs to be done in order to implement the feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions