diff options
author | Josef Bacik <josef@toxicpanda.com> | 2024-03-19 12:55:57 -0400 |
---|---|---|
committer | Anand Jain <anand.jain@oracle.com> | 2024-03-24 19:57:42 +0800 |
commit | 805eeea406a7cd78ab76f91cb061bce7e9a3e83c (patch) | |
tree | e44da0d79bcede19a47d2532daea820b1db5b3d2 | |
parent | 7337c582d46ac216e364e86a9a8f554fda54b59f (diff) | |
download | xfstests-dev-805eeea406a7cd78ab76f91cb061bce7e9a3e83c.tar.gz |
fstests: btrfs/195: skip raid setups not in the profile configs
You can specify a custom BTRFS_PROFILE_CONFIGS to skip certain raid
configurations in the tests, however btrfs/195 doesn't honor this
currently. Fix this up by getting the profile configs and skipping any
configurations that are not listed in BTRFS_PROFILE_CONFIGS.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
-rwxr-xr-x | tests/btrfs/195 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/btrfs/195 b/tests/btrfs/195 index 96cc413439..df8f5ed6e4 100755 --- a/tests/btrfs/195 +++ b/tests/btrfs/195 @@ -21,6 +21,9 @@ _require_scratch_dev_pool 4 # Zoned btrfs only supports SINGLE profile _require_non_zoned_device "${SCRATCH_DEV}" +# Load up the available configs +_btrfs_get_profile_configs + declare -a TEST_VECTORS=( # $nr_dev_min:$data:$metadata:$data_convert:$metadata_convert "4:single:raid1" @@ -38,6 +41,11 @@ run_testcase() { src_type=${args[1]} dst_type=${args[2]} + if [[ ! "${_btrfs_profile_configs[@]}" =~ "$dst_type" ]]; then + echo "=== Skipping test: $1 ===" >> $seqres.full + return + fi + _scratch_dev_pool_get $num_disks echo "=== Running test: $1 ===" >> $seqres.full |