Skip to content

Commit a44c4e4

Browse files
committed
uefi-test-runner: serial: test new functionality
1 parent b953e6b commit a44c4e4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

uefi-test-runner/src/proto/console/serial.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,16 @@ pub unsafe fn test() {
5252
info!("Running serial protocol test");
5353
let handle = boot::get_handle_for_protocol::<Serial>().expect("missing Serial protocol");
5454

55+
// Note: After this line, until we reconnected the console driver with the
56+
// serial device, we won't get logging output on the serial device.
57+
// Log messages are still printed to the debugcon device.
5558
let mut serial =
5659
boot::open_protocol_exclusive::<Serial>(handle).expect("failed to open serial protocol");
60+
debug!("Serial protocol revision: {:?}", serial.revision());
61+
debug!(
62+
"Serial protocol device_type_guid: {:?}",
63+
serial.device_type_guid()
64+
);
5765

5866
// Send the request, but don't check the result yet so that first
5967
// we can reconnect the console output for the logger.

0 commit comments

Comments
 (0)