From 59b718d2203ecf800600f257f0fac31072bcc885 Mon Sep 17 00:00:00 2001 From: Hongchao Zhang Date: Thu, 26 Oct 2023 22:08:00 +0800 Subject: [PATCH] LU-15461 test: add stop file check Adding the creation checking of "stop file". Change-Id: I4acd36e61faf4259c2821293ffb7913d4cca76bd Test-Parameters: trivial testlist=sanity-quota Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52737 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Sergey Cheremencev Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/sanity-quota.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index ca314fa..88e472a 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -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=$! -- 1.8.3.1