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

Qu Wenruo
2022-10-05T02:25:49Z

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(-)

--
2.37.3