Skip to content

Commit

Permalink
test/repart: fix mkfs checker
Browse files Browse the repository at this point in the history
Follow-up for 27cacec.
  • Loading branch information
yuwata authored and DaanDeMeyer committed Sep 17, 2024
1 parent b3ebd48 commit 9959681
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/units/TEST-58-REPART.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1325,9 +1325,12 @@ testcase_compression() {

# TODO: add btrfs once btrfs-progs v6.11 is available in distributions.
for format in squashfs erofs; do
if ! command -v "mkfs.$format" && ! command -v mksquashfs >/dev/null; then
continue
fi
case "$format" in
squashfs)
command -v mksquashfs >/dev/null || continue ;;
*)
command -v "mkfs.$format" || continue ;;
esac

[[ "$format" == "squashfs" ]] && compression=zstd
[[ "$format" == "erofs" ]] && compression=lz4hc
Expand Down

0 comments on commit 9959681

Please sign in to comment.