1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2026-05-30 20:25:59 +00:00
os-autoinst-distri-fedora/lib
Lukáš Růžička 19ce5c75eb Fix the locking mechanism and add tests as requested
Improve Fedora Media Writer tests by validating written USB media
against the original ISO and by making the workflow work reliably
across classic and Silverblue variants.

The previous post-write verification relied on mounting the USB partitions
and checking for a handful of expected directory structures. This is replaced
with a stronger end-to-end check that verifies the embedded checksum on the
target device and then compares the raw device contents byte-for-byte
with the downloaded ISO, treating the expected cmp “EOF” condition as success.

To support Silverblue, where the required isomd5sum package is not installed
by default, a generic toolbox helper is introduced in utils.pm to create a toolbox,
install required packages inside it, and run the necessary command there.

The media writer test template is updated to explicitly model the USB target
as /dev/sda by enforcing a single-disk setup and adjusting that QEMU uses
a snapshot to create the device and thus not create a file lock on it to
prevent other tests from running.
2026-01-15 12:28:04 +01:00
..
anaconda.pm Revert "blivet: workaround https://gitlab.gnome.org/GNOME/mutter/-/issues/4211" 2026-01-07 13:37:33 -08:00
anacondatest.pm Run update repo setup steps from a serial console 2024-01-11 12:09:59 -08:00
bugzilla.pm Add a perltidy check and apply it to the entire codebase 2022-07-28 14:38:38 -07:00
cockpit.pm Cockpit: drop sidebar scroll handling 2026-01-05 10:56:52 -08:00
disks.pm disks: drop a workaround we did not hit for a long time 2024-01-09 17:48:28 -08:00
fedoradistribution.pm Move the content from i3 library to the files. 2024-09-26 16:06:43 -07:00
freeipa.pm Add a needle cleanup script, enhance the needle check script 2023-05-04 09:57:15 -07:00
installedtest.pm Add an rmdepcheck test for updates (WIP) 2025-09-22 12:22:23 -07:00
mock.pm Build and test cloud image in updates tests 2025-08-28 16:43:07 -07:00
mwriter.pm Fix the locking mechanism and add tests as requested 2026-01-15 12:28:04 +01:00
packagetest.pm Run base tests on ELN 2023-06-23 11:53:11 +02:00
tapnet.pm Tweak nmcli connection name discovery 2025-12-05 14:45:44 -08:00
utils.pm Fix the locking mechanism and add tests as requested 2026-01-15 12:28:04 +01:00