Whamcloud - gitweb
LU-16309 tests: skip test_150b() for EOPNOTSUPP 36/49136/4
authorElena Gryaznova <elena.gryaznova@hpe.com>
Fri, 11 Nov 2022 09:53:47 +0000 (10:53 +0100)
committerOleg Drokin <green@whamcloud.com>
Tue, 22 Nov 2022 04:23:09 +0000 (04:23 +0000)
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 <elena.gryaznova@hpe.com>
HPE-bug-id: LUS-10961
Reviewed-by: Vladimir Saveliev <vladimir.saveliev@hpe.com>
Change-Id: I253b89bb3dd047434c7fa0e91bb0faefef24e128
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49136
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index db35b4d..c51d9dc 100755 (executable)
@@ -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"