Skip to content

Commit bf8ffee

Browse files
yuwatabluca
authored andcommitted
test: update test for free area calculation in repart
(cherry picked from commit 937625c) (cherry picked from commit f03f365)
1 parent b797bd1 commit bf8ffee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/units/testsuite-58.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ EOF
840840
--json=pretty \
841841
"$imgs/zzz")
842842

843-
# FIXME: the second invocation fails.
843+
# The second invocation
844844
output2=$(SYSTEMD_REPART_MKFS_OPTIONS_VFAT="-S 512" systemd-repart \
845845
--definitions="$defs" \
846846
--seed="$seed" \
@@ -850,7 +850,9 @@ EOF
850850
--sector-size=4096 \
851851
--defer-partitions=esp \
852852
--json=pretty \
853-
"$imgs/zzz") || :
853+
"$imgs/zzz")
854+
855+
diff -u <(echo "$output1" | grep -E "(offset|raw_size|raw_padding)") <(echo "$output2" | grep -E "(offset|raw_size|raw_padding)")
854856
}
855857

856858
test_sector() {

0 commit comments

Comments
 (0)