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>
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"