From: Elena Gryaznova Date: Fri, 11 Nov 2022 09:53:47 +0000 (+0100) Subject: LU-16309 tests: skip test_150b() for EOPNOTSUPP X-Git-Tag: 2.15.53~60 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ee13ee104d1f21ebc66e8fc99b40f2f8afe1c53a;p=fs%2Flustre-release.git LU-16309 tests: skip test_150b() for EOPNOTSUPP Fix sanity:test_150b() to really be skipped if check_fallocate returs EOPNOTSUPP. Fixes: 2f496148c3 ("LU-15551 ofd: Return EOPNOTSUPP instead of EPROTO") Test-Parameters: trivial testlist="sanity" env=ONLY="150b" Signed-off-by: Elena Gryaznova HPE-bug-id: LUS-10961 Reviewed-by: Vladimir Saveliev Change-Id: I253b89bb3dd047434c7fa0e91bb0faefef24e128 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49136 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Arshad Hussain Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index db35b4d..c51d9dc 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -15047,10 +15047,12 @@ run_test 150a "truncate/append tests" test_150b() { check_set_fallocate_or_skip + local out touch $DIR/$tfile stack_trap "rm -f $DIR/$tfile; wait_delete_completed" - check_fallocate $DIR/$tfile || skip_eopnotsupp "fallocate failed" + out=$(check_fallocate $DIR/$tfile 2>&1) || + skip_eopnotsupp "$out|check_fallocate failed" } run_test 150b "Verify fallocate (prealloc) functionality"