1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

test: update test for free area calculation in repart

This commit is contained in:
Yu Watanabe 2023-07-03 15:15:27 +09:00
parent d2eb1f8145
commit 937625c7c7

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() {