Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial (UART) output is captured in two phases, small window to lose messages #349

Open
thp-canonical opened this issue Aug 28, 2024 · 1 comment

Comments

@thp-canonical
Copy link
Contributor

For situations where images output log messages right after the device connector has determined that provisioning is successful, there might be a very short time window where the "provision-serial.log" capture stops and the "test-serial.log" capture hasn't started yet, dropping certain log messages. For test cases that depend on Serial/UART output, it might be good if the serial capture starts when/right before the DUT is power-cycled and continues running between the provisioning and testing phase.

Right now, provision logs are captured here (muxpi used as an example here, other device connectors capture the serial log in a similar way):

serial_proc = SerialLogger(
serial_host, serial_port, "provision-serial.log"
)
serial_proc.start()
try:
device.provision()
except Exception as e:
raise e
finally:
serial_proc.stop()

And test logs are captured here:

serial_proc = SerialLogger(serial_host, serial_port, "test-serial.log")
serial_proc.start()
try:
exitcode = testflinger_device_connectors.run_test_cmds(
test_cmds, config
)
except Exception as e:
raise e
finally:
serial_proc.stop()

Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CERTTF-397.

This message was autogenerated

@github-staff github-staff deleted a comment from Superstar-IT Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@thp-canonical and others