-
Notifications
You must be signed in to change notification settings - Fork 6
Description
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.