From 937625c7c72e503d03b406de3e1859d7f00dbdcf Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 3 Jul 2023 15:15:27 +0900 Subject: [PATCH] test: update test for free area calculation in repart --- test/units/testsuite-58.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/units/testsuite-58.sh b/test/units/testsuite-58.sh index a170128de91..c7510dd3fca 100755 --- a/test/units/testsuite-58.sh +++ b/test/units/testsuite-58.sh @@ -1088,7 +1088,7 @@ EOF --json=pretty \ "$imgs/zzz") - # FIXME: the second invocation fails. + # The second invocation output2=$(SYSTEMD_REPART_MKFS_OPTIONS_VFAT="-S 512" systemd-repart \ --definitions="$defs" \ --seed="$seed" \ @@ -1098,7 +1098,9 @@ EOF --sector-size=4096 \ --defer-partitions=esp \ --json=pretty \ - "$imgs/zzz") || : + "$imgs/zzz") + + diff -u <(echo "$output1" | grep -E "(offset|raw_size|raw_padding)") <(echo "$output2" | grep -E "(offset|raw_size|raw_padding)") } test_sector() { -- 2.47.3