Create test suite for Fedora Media Writer #462
1 changed files with 2 additions and 2 deletions
commit
88f25c639a
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue