Skip to content

Commit 2b47a65

Browse files
committed
test: add network interface to test_serial_dos test
test_serial_dos test checks that when we send a lot of bytes in the serial device the emulation logic does not increase indefinitely the underlying buffer that we use for when the device is set in loopback mode. However, the test does not wait for the microVM to start and sometimes the virtual memory allocation may increase between readings. Add a network device to the microVM so that we implicitly wait until it has booted before taking the first measurement. Signed-off-by: Babis Chalios <bchalios@amazon.es>
1 parent 4733fba commit 2b47a65

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration_tests/functional/test_serial_io.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def test_serial_dos(uvm_plain_any):
146146
vcpu_count=1,
147147
boot_args="console=ttyS0 reboot=k panic=1 pci=off",
148148
)
149+
microvm.add_net_iface()
149150
microvm.start()
150151

151152
# Open an fd for firecracker process terminal.

0 commit comments

Comments
 (0)