Whamcloud - gitweb
LU-15461 test: add stop file check 37/52737/4
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 26 Oct 2023 14:08:00 +0000 (22:08 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Feb 2024 07:12:19 +0000 (07:12 +0000)
Adding the creation checking of "stop file".

Change-Id: I4acd36e61faf4259c2821293ffb7913d4cca76bd
Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52737
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index ca314fa..88e472a 100755 (executable)
@@ -5754,7 +5754,8 @@ test_79()
        local cmd="$LCTL get_param -n qmt.$FSNAME-QMT0000.dt-$qpool.info"
        local stopf=$TMP/$tfile
 
-       do_facet mds1 "touch $stopf"
+       do_facet mds1 "touch $stopf" || error "can't create $stopf"
+       do_facet mds1 "ls $stopf" || error "can't find $stopf"
        stack_trap "do_facet mds1 'rm -f $stopf'"
        do_facet mds1 "while [ -e $stopf ]; do $cmd &>/dev/null; done"&
        local pid=$!