Xiaotian Wu
6588f2c295
tests: Fix timezone inconsistency in squashfs_test
The image timestamp was not returned in UTC, but the following logic
expected and used UTC.
This patch fixes the test failure like described below:
unsquashfs -s /tmp/grub-fs-tester.20230407111703613257436.squash4_gzip.9R4/squash4_gzip_512_4096_1_0.img
grep '^Creation'
awk '{print $6 " " $7 " " $8 " " $9 " " $10; }'
FSTIME='Fri Apr 7 11:17:05 2023'
date -d 'Fri Apr 7 11:17:05 2023' -u '+%Y-%m-%d %H:%M:%S'
FSTIME='2023-04-07 11:17:05'
date -d '2023-04-07 11:17:05 UTC -1 second' -u '+%Y-%m-%d %H:%M:%S'
FSTIMEM1='2023-04-07 11:17:04'
date -d '2023-04-07 11:17:05 UTC -2 second' -u '+%Y-%m-%d %H:%M:%S'
FSTIMEM2='2023-04-07 11:17:03'
date -d '2023-04-07 11:17:05 UTC -3 second' -u '+%Y-%m-%d %H:%M:%S'
FSTIMEM3='2023-04-07 11:17:02'
grep -F 'Last modification time 2023-04-07 11:17:05'
echo 'Device loop0: Filesystem type squash4 - Last modification time 2023-04-07 03:17:05 Friday - Sector size 512B - Total size 10680KiB'
echo 'Device loop0: Filesystem type squash4 - Last modification time 2023-04-07 03:17:05 Friday - Sector size 512B - Total size 10680KiB'
grep -F 'Last modification time 2023-04-07 11:17:04'
echo 'Device loop0: Filesystem type squash4 - Last modification time 2023-04-07 03:17:05 Friday - Sector size 512B - Total size 10680KiB'
grep -F 'Last modification time 2023-04-07 11:17:03'
echo 'Device loop0: Filesystem type squash4 - Last modification time 2023-04-07 03:17:05 Friday - Sector size 512B - Total size 10680KiB'
grep -F 'Last modification time 2023-04-07 11:17:02'
echo FSTIME FAIL
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Reviewed-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2023-05-17 13:27:41 +02:00
..
2015-01-23 19:46:02 +01:00
2012-02-12 22:04:55 +01:00
2019-03-05 10:27:53 +01:00
2023-05-17 13:27:41 +02:00
2021-10-14 15:03:41 +02:00
2021-10-25 16:23:34 +02:00
2021-10-14 15:03:41 +02:00
2012-05-30 13:54:30 +02:00
2021-10-14 15:03:41 +02:00
2021-10-25 16:23:34 +02:00
2013-10-26 02:48:19 +02:00
2013-05-15 17:26:49 +02:00
2013-05-15 17:26:49 +02:00
2021-10-14 15:03:41 +02:00
2010-08-19 17:50:05 +05:30
2017-05-03 12:49:31 +02:00
2012-05-30 13:54:30 +02:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2021-10-14 15:03:41 +02:00
2019-01-14 13:05:18 +01:00
2021-10-14 15:00:06 +02:00
2023-02-28 13:09:51 +01:00
2021-10-14 15:03:41 +02:00
2010-11-07 16:13:14 +05:30
2017-05-03 12:49:31 +02:00
2021-10-14 15:03:41 +02:00
2021-10-14 15:03:41 +02:00
2021-10-14 15:00:06 +02:00
2017-05-03 12:49:31 +02:00
2023-02-28 13:13:02 +01:00
2017-05-03 12:49:31 +02:00
2021-10-14 15:00:06 +02:00
2010-05-05 15:34:26 +05:30
2010-05-01 15:39:59 +05:30
2010-05-05 16:19:31 +05:30
2017-05-03 12:49:31 +02:00
2012-06-08 22:54:21 +02:00
2010-01-22 19:07:27 +05:30
2013-04-29 12:25:57 +02:00
2013-06-15 17:39:45 +02:00
2021-10-14 14:48:45 +02:00
2017-05-03 12:49:31 +02:00
2010-01-23 11:03:41 +05:30
2010-05-12 13:53:50 +05:30
2012-03-11 14:46:48 +01:00
2010-03-21 10:27:21 +05:30
2012-03-19 13:29:43 +01:00
2017-05-03 12:49:31 +02:00
2010-09-05 14:57:28 +05:30
2010-08-25 19:35:52 +05:30
2010-08-15 12:02:33 +05:30
2010-05-12 17:46:49 +05:30
2012-05-04 12:08:22 +02:00
2013-05-04 13:38:59 +02:00
2010-05-12 10:19:12 +05:30
2010-01-26 12:32:47 +05:30
2021-10-25 16:23:34 +02:00
2021-10-14 15:03:41 +02:00
2023-01-19 17:39:04 +01:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2023-02-28 12:47:58 +01:00
2023-02-28 12:47:58 +01:00
2023-04-13 14:54:20 +02:00
2023-04-13 14:54:20 +02:00
2021-10-25 16:23:34 +02:00
2023-02-01 16:45:21 +01:00
2023-02-01 16:45:21 +01:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2021-10-14 15:03:41 +02:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2021-10-14 15:03:41 +02:00
2022-06-07 12:40:52 +02:00
2022-02-08 16:06:50 +01:00
2017-08-30 16:59:25 +02:00
2013-05-07 11:30:48 +02:00
2021-10-14 15:03:41 +02:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2021-10-14 15:00:06 +02:00
2021-10-25 16:23:34 +02:00
2021-10-14 15:00:06 +02:00
2013-10-26 14:52:54 +02:00
2021-10-25 16:23:34 +02:00
2021-10-14 15:03:41 +02:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00
2021-10-25 16:23:34 +02:00