Commit 3aff2ee
committed
tests/bios: Use recreate_serial_console in BIOS boot tests
Refactor BIOS boot order tests to use the recreate_serial_console parameter
instead of manually calling cleanup_serial_console() and
create_serial_console() before wait_for_serial_login().
This simplifies console management after VM boot operations, ensuring
proper console state for various boot scenarios including OVMF and SeaBIOS.
Modified test files:
- bios/boot_order_ovmf.py: Console after VM start for OVMF boot testing
- bios/boot_order_seabios.py: Console after VM start for SeaBIOS boot testing
Both tests handle console recreation after VM start operations where the
console needs to be reset to properly capture boot messages and login prompts.
Total: 2 files modified with 9 fewer lines of console management code.
Depends on: avocado-framework/avocado-vt#4248
Depends on: #6596
Signed-off-by: hholoubk <hholoubk@redhat.com>1 parent c96ab65 commit 3aff2ee
2 files changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 26 | + | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 33 | + | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
274 | | - | |
275 | | - | |
| 273 | + | |
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
281 | 279 | | |
282 | | - | |
283 | | - | |
284 | | - | |
| 280 | + | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
| |||
0 commit comments