main: Fix test_valid_vm_config_serial_console

This test has a copy and paste error where the PCI segment ID was being
set with no extra segments configured.

Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-06-12 12:04:03 +01:00
parent 3a01ad081a
commit 24f8ccf5a7

View File

@@ -1717,12 +1717,12 @@ mod unit_tests {
"--serial",
"null",
"--console",
"tty,pci_segment=1,pci_device_id=7",
"tty,pci_segment=0,pci_device_id=7",
],
r#"{
"payload": {"kernel": "/path/to/kernel"},
"serial": {"mode": "Null"},
"console": {"mode": "Tty", "iommu": false, "pci_segment": 1, "pci_device_id": 7}
"console": {"mode": "Tty", "iommu": false, "pci_segment": 0, "pci_device_id": 7}
}"#,
true,
),