]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: update test for free area calculation in repart 28228/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Jul 2023 06:15:27 +0000 (15:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Jul 2023 01:40:56 +0000 (10:40 +0900)
test/units/testsuite-58.sh

index a170128de915279d0314dd7469e3fc2a33072744..c7510dd3fcafa6ef70a597e8b3db1371b9c403f4 100755 (executable)
@@ -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() {