test: update test for free area calculation in repart

This commit is contained in:
Yu Watanabe
2023-07-05 10:40:56 +09:00
parent d2eb1f8145
commit 937625c7c7
+4 -2
View File
@@ -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() {