You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests: Remove unnecessary '&&' in requires() functions
The '&&' operator should only be used when the second operand
is dependent on the first. In the context of requires() functions,
we prefer to evaluate all conditions independently to display
all SKIP_REASONS at once. This change separates the conditions
into individual lines to ensure each condition is evaluated
regardless of the others.
After this patch, there are a few '&&' remain
$ git grep -wl 'requires()' | xargs -I {} sed -n '/^requires() *{/,/}/p' {} | grep '&&'
_have_null_blk && _have_module_param null_blk blocking
_have_null_blk && _have_module_param null_blk shared_tags
_have_null_blk && _have_module_param null_blk timeout
_have_null_blk && _have_module_param null_blk requeue
_have_null_blk && _have_module_param null_blk shared_tags
_have_null_blk && _have_module_param null_blk init_hctx
_have_module nvme_tcp && _have_module_param nvme_tcp ddp_offload
_have_program mkfs.btrfs && have_good_mkfs_btrfs
Signed-off-by: Li Zhijian <[email protected]>
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
0 commit comments