]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: Do not remove image file on error in pata_test
authorGlenn Washburn <development@efficientek.com>
Sun, 6 Feb 2022 22:00:08 +0000 (16:00 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 8 Feb 2022 15:06:50 +0000 (16:06 +0100)
The image file can be useful in debugging an issue when the test fails.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/pata_test.in

index 4fee0b0fbcd2fe307cb1f9cb001d6fd3ce4e8bad..27dccec19b34a448d1b7b13f8f915b1fe9cb125e 100644 (file)
@@ -47,7 +47,6 @@ tar cf "$imgfile" "$outfile"
 
 v=$(echo "nativedisk; source '($indisk)/$outfile';" | "${grubshell}" --qemu-opts="-$disk $imgfile")
 if [ "$v" != "Hello World" ]; then
-   rm "$imgfile"
    rm "$outfile"
    exit 1
 fi