From 5e24b374f7bd17c7e2029affeca717b6c93600fd Mon Sep 17 00:00:00 2001 From: Li Xi Date: Mon, 27 Feb 2023 11:22:28 +0800 Subject: [PATCH] LU-16595 test: save one second in wait_destroy_complete() In wait_destroy_complete(), there is no need to wait another 1 second when all in flight destroys finish. Signed-off-by: Li Xi Change-Id: I351616ecf261f1e77c3f8d61f5541a51e327fa83 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50144 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Emoly Liu Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/test-framework.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 516045c..f09884d 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -3565,8 +3565,8 @@ wait_destroy_complete () { con=0 break; done - sleep 1 [ ${con} -eq 1 ] && return 0 # done waiting + sleep 1 echo "Waiting ${WAIT}s for local destroys to complete" WAIT=$((WAIT + 1)) done -- 1.8.3.1