1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/console/tests
catborise 30864b507e fix(console): a serial console reports its VM's stop
When a VM stopped, its console's stream could end before the worker's
next check saw the VM shut off. The check then found no stream to drop and
said nothing, or, seeing the VM still running, opened the console again,
which libvirt refused, and the session ended. The worker now remembers
whether the VM ran at its last check, and a console that cannot be opened
again because the VM stopped meanwhile is a stop: the terminal says the VM
is not running and the console opens again when it starts. A new stream is
the console's before its callback is registered, which may end it at once.

The live serial test's VM now repeats its BIOS banner (it reboots right
after finding no boot disk), so a console attached late still gets one,
and the test waits for the superuser's console to show it before the VM
stops. A run of the whole live suite over the socket missed the banner of
the paused-then-resumed VM before.
2026-10-31 23:23:30 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_consolecallback.py fix(console): a serial console reports its VM's stop 2026-10-31 23:23:30 +03:00
test_layouts.py feat(console): typed text follows the VM's keyboard layout 2026-10-27 12:23:32 +03:00
test_live_serial.py fix(console): a serial console reports its VM's stop 2026-10-31 23:23:30 +03:00
test_socketiod.py feat(console): the serial console page on the panel's bar; a taken-over user learns by whom 2026-10-27 08:12:33 +03:00
test_socketiod_child.py feat(console): the serial console page on the panel's bar; a taken-over user learns by whom 2026-10-27 08:12:33 +03:00
test_sshtunnels.py fix(console): an SSH console tunnel neither stalls on its errors nor hangs on close 2026-10-26 23:52:37 +03:00
test_views.py feat(console): typed text follows the VM's keyboard layout 2026-10-27 12:23:32 +03:00