Using the network block device (nbd) kernel module to test all the non-raw image formats often caused tests to fail due to nbd not being stable itself (see below). Instead convert non-raw images to the raw format via qemu-img convert and mount those with loop-back devices. All the testing code itself stays the same. Example nbd error messages: kernel: block nbd15: NBD_DISCONNECT kernel: block nbd15: Disconnected due to user request. kernel: print_req_error: 89 callbacks suppressed kernel: blk_update_request: I/O error, dev nbd15, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 kernel: buffer_io_error: 134 callbacks suppressed kernel: Buffer I/O error on dev nbd15, logical block 0, async page read kernel: blk_update_request: I/O error, dev nbd15, sector 1 op 0x0:(READ) flags 0x0 phys_seg 7 prio class 0 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_assemblers.py | ||
| test_boot.py | ||
| test_noop.py | ||
| test_sources.py | ||
| test_stages.py | ||