]> git.ipfire.org Git - thirdparty/grub.git/commit
tests: When checking squashfs fstime, use superblock last modified time
authorGlenn Washburn <development@efficientek.com>
Wed, 13 Oct 2021 00:39:56 +0000 (19:39 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 14 Oct 2021 12:37:27 +0000 (14:37 +0200)
commitb314807a0eb1ee5d00712d647b62266650786600
tree06b4d25f11e19cc5b65768ac1510fd568b8bb885
parent57a393ca59b3358aec61af10edbc79d8c366e5e4
tests: When checking squashfs fstime, use superblock last modified time

Currently, the filesystem timestamp check in grub-fs-tester uses the
squashfs image file's last modified timestamp and checks to see if that
time stamp is within 3 seconds of the superblock timestamp as determined by
grub. The image file's timestamp could be more than 3 seconds off if
mksquashfs takes more than 3 seconds to generate the image, as is the case
on a virtual machine. Instead use squashfs tools to get the filesystem
timestamp directly.

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