Repository navigation
Introduce serial monitor - #66
Merged
Merged
Conversation
Output redirection applied only to the last command of a compound one, so its earlier parts kept the session output open and the call blocked until they finished. Run the command in a subshell to redirect it as a whole. A simple command is executed by the subshell directly, so the returned PID is still the command's one. Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Since the ProxyJump support the connection uses 'host', and a config with only 'ip' has been blocked, drop the 'ip' field entirely and require 'host'. The DUT IP is always resolved from the host. Name per-DUT log directories after the host instead of the IP, so they match the DUT config. Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Command log is a single timeline for all DUTs, so to distinguish between commands executed on each DUT, mark each command with the DUT host name. Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Collect DUT serial console output into dut_info/<host>/serial.log using the libvirt console stream, the same way 'virsh console' does. Output is written as it arrives, so it survives a hung DUT or a crashed controller. Step markers are inserted into the log to correlate it with the test flow. Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
Scan serial console output for kernel warnings and bugs. Warnings are reported in the test log at the next test step and the test continues. A bug interrupts the test by injecting an exception into the test thread with a signal, which also breaks blocking calls, e.g. waiting for a command hung by the bug. The exception is raised only within pytest's runtest hook call, otherwise it is deferred to the next step. Add expect() for tests triggering kernel messages on purpose. Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
robertbaldyga
force-pushed
the
serial-monitor
branch
from
October 18, 2026 20:39
406068f to
e92f837
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.