]> www.infradead.org Git - users/sagi/blktests.git/commit
Skip tests based on SKIP_REASON, not return value
authorOmar Sandoval <osandov@fb.com>
Thu, 5 Mar 2020 00:27:38 +0000 (16:27 -0800)
committerOmar Sandoval <osandov@fb.com>
Thu, 5 Mar 2020 01:01:32 +0000 (17:01 -0800)
commit4824ac3f5c4a845d373c85ee37e00a0d6f109608
treeaaa9fd8e645d06e6effb852d97fc763cf2a8ef3f
parent5b2d6eeb1ef02d645ea44d95c9562e41e545e510
Skip tests based on SKIP_REASON, not return value

Currently, {,group_,device_}requires are required to both set
SKIP_REASON and return non-zero. This is somewhat redundant, and will be
inconsistent with skipping from test{,_device} that is about to be
implemented. Let's ignore the return value and always skip the test if
SKIP_REASON is set. The _have_foo and _test_dev_foo helpers should still
return so that they can be chained together.
check
common/rc
new
tests/meta/007
tests/meta/008
tests/meta/rc
tests/nvmeof-mp/rc
tests/srp/015
tests/srp/rc
tests/zbd/rc