Whamcloud - gitweb
LU-14645 tests: test lfs setdirstripe with '/$' 63/49463/2
authorJian Yu <yujian@whamcloud.com>
Tue, 20 Dec 2022 20:24:25 +0000 (12:24 -0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jan 2023 07:52:56 +0000 (07:52 +0000)
This patch improves one of the lfs setdirstripe tests to
verify that dir name ending with '/' also works.

Test-Parameters: trivial mdscount=2 mdtcount=4 \
env=ONLY=24B testlist=sanity

Change-Id: I237d5a9ebad42cc0569aa1db487d0df147372316
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49463
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index d9fb018..bb7a89a 100755 (executable)
@@ -1359,7 +1359,7 @@ test_24B() { # LU-4805
        local count
 
        test_mkdir $DIR/$tdir
-       $LFS setdirstripe -i0 -c$MDSCOUNT $DIR/$tdir/striped_dir ||
+       $LFS setdirstripe -i0 -c$MDSCOUNT $DIR/$tdir/striped_dir/ ||
                error "create striped dir failed"
 
        count=$(ls -ai $DIR/$tdir/striped_dir | wc -l)