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:
parent
d2eb1f8145
commit
937625c7c7
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user