Skip to content

btrfs-progs: selftests fixes

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: tests: fix the wrong kernel version checktests/common+19 -41 reply
2/3btrfs-progs: mkfs-tests/025: fix the wrong function calltests/mkfs-tests/025-zoned-parallel/test.sh+1 -13 replies
3/3btrfs-progs: convert-tests/022: add reiserfs support checktests/convert-tests/022-reiserfs-parent-ref/test.sh+5 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] btrfs-progs: selftests fixes

There are 3 bugs exposed during my tests for unified mkfs features, and they are all from the selftest itself:

- check_min_kernel_version() doesn't handle 6.x kernels at all The original check never handles major number check properly. And when we change major number, returns in correct number now.

- Missing a space between "!" and function call
This bug is there for a long time.

Without previous fix, one may incorrectly remove the "!" and cause new problems.

- Convert/022 doesn't check if we have support for reiserfs

Qu Wenruo (3):
btrfs-progs: tests: fix the wrong kernel version check
btrfs-progs: mkfs-tests/025: fix the wrong function call
btrfs-progs: convert-tests/022: add reiserfs support check

 tests/common                                  | 23 +++++++++++++++----
 .../022-reiserfs-parent-ref/test.sh           |  5 ++++
 tests/mkfs-tests/025-zoned-parallel/test.sh   |  2 +-
 3 files changed, 25 insertions(+), 5 deletions(-)
Signature · 1 line
2.37.3