From 2dbb4d1ae3bcda5c733c512df141837289e03b7a Mon Sep 17 00:00:00 2001 From: Aditya Pandit Date: Tue, 24 Nov 2015 15:05:40 +0530 Subject: [PATCH] LU-7471 tests: Modified make_custom_file_for_progress fn After executing tests like test_200 and if there is not enough space the function make_custom_file_for_progress was returning 1 on error but this error was not getting caught properly. Modified the code to catch the error properly. Test-Parameters: trivial testlist=sanity-hsm Seagate-bug-id: MRP-3026 Signed-off-by: Mikhail V. Pridushchenko Signed-off-by: Aditya Pandit Change-Id: I0db45e327d6f49d066b5c631096a459b8acd2758 Signed-off-by: Ashish Purkar Reviewed-on: https://review.whamcloud.com/17346 Reviewed-by: Emoly Liu Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/tests/sanity-hsm.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/tests/sanity-hsm.sh b/lustre/tests/sanity-hsm.sh index 8577d25..dd700c3 100755 --- a/lustre/tests/sanity-hsm.sh +++ b/lustre/tests/sanity-hsm.sh @@ -698,8 +698,7 @@ make_custom_file_for_progress() { [[ $blksz -gt 0 ]] || error "Invalid stripe size" cleanup_large_files - check_enough_free_space $fsize $blksz - [ $? != 0 ] && return $? + check_enough_free_space $fsize $blksz || return $? dd if=/dev/zero of=$file2 count=$fsize bs=$blksz conv=fsync || file_creation_failure dd $file2 $? path2fid $1 || error "cannot get fid on $1" -- 1.8.3.1