Skip to content

Commit

Permalink
test: update test for free area calculation in repart
Browse files Browse the repository at this point in the history
(cherry picked from commit 937625c)
  • Loading branch information
yuwata authored and bluca committed Jul 7, 2023
1 parent 2299ca1 commit f03f365
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/units/testsuite-58.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,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" \
Expand All @@ -1021,7 +1021,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() {
Expand Down

0 comments on commit f03f365

Please sign in to comment.