From: Karel Zak Date: Tue, 7 Apr 2026 15:33:57 +0000 (+0200) Subject: tests: mkswap file-existing subtest add explicit page size X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5da6dcfecaa4f81be1fdcea3b3981af0ec194e0;p=thirdparty%2Futil-linux.git tests: mkswap file-existing subtest add explicit page size The file-existing subtest fails on platforms with large native page sizes (e.g. 64 KiB on aarch64) because the 40 KiB swap image is too small. Add -p 4096 to match the other subtests. Signed-off-by: Karel Zak --- diff --git a/tests/ts/mkswap/mkswap b/tests/ts/mkswap/mkswap index 19111971c..c3ae302b6 100755 --- a/tests/ts/mkswap/mkswap +++ b/tests/ts/mkswap/mkswap @@ -105,11 +105,11 @@ ts_init_subtest file-existing outimg="$TS_OUTDIR/existing.img" rm -f "$outimg" -"$TS_CMD_MKSWAP" -q -U "$UUID" -F -s $((4096 * 10)) "$outimg" \ +"$TS_CMD_MKSWAP" -q -U "$UUID" -p 4096 -F -s $((4096 * 10)) "$outimg" \ >> "$TS_OUTPUT" 2>/dev/null \ || ts_log "mkswap failed" -"$TS_CMD_MKSWAP" -q -U "$UUID" -F -s $((4096 * 10)) "$outimg" \ +"$TS_CMD_MKSWAP" -q -U "$UUID" -p 4096 -F -s $((4096 * 10)) "$outimg" \ >> "$TS_OUTPUT" 2>&1 \ || ts_log "mkswap -F failed on existing file"