Create test suite for Fedora Media Writer #462

Merged
adamwill merged 16 commits from newtest/fedora-media-writer into main 2026-06-08 04:02:55 +00:00
Showing only changes of commit 88f25c639a - Show all commits

Fix mwriter.pm as told by AI overlord
All checks were successful
CI via Tox and perl / tox (pull_request) Successful in 3m39s
CI via Tox and perl / perl (pull_request) Successful in 3m28s

Lukáš Růžička 2026-01-28 16:29:22 +01:00

View file

@ -17,10 +17,10 @@ our @EXPORT = qw(check_written_content);
# Assumes the target device is /dev/sda which is correct as the normal
# disk is /dev/vda and the CD mechanics is /dev/sr0
sub check_written_content {
my $iso = script_output("ls /home/test/Downloads/*.iso");
my $iso = script_output("ls -t /home/test/Downloads/*.iso | head -n1");
my $variant = get_var("SUBVARIANT");
my $checkiso = "checkisomd5 -v /dev/sda";
my $compare = "cmp /dev/sda $iso 2>&1 | tee /dev/stderr | grep -q 'EOF on .*\.iso'";
my $compare = "cmp /dev/sda \"$iso\" 2>&1 | tee /dev/stderr | grep -q 'EOF on .*\.iso'";
# Check the checksum of the written media and compare the ISO and the media.
if ($variant eq "Silverblue") {