]> www.infradead.org Git - users/hch/blktests.git/commit
common, tests: Print multiple skip reasons
authorlizhijian@fujitsu.com <lizhijian@fujitsu.com>
Wed, 13 Jul 2022 12:12:05 +0000 (12:12 +0000)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 14 Jul 2022 00:24:40 +0000 (09:24 +0900)
commit5c2012764cbc7aa431c51d87bdcb25f07b251a83
tree3dcbffeb14b9ffc283894e811a14ac9aa4e00a54
parentebf197d1aea41344cc98e1a97317dcf853646320
common, tests: Print multiple skip reasons

Some test cases or test groups have rather large number of test
run requirements and then they may have multiple skip reasons. However,
blktests can report only single skip reason. To know all of the skip
reasons, we need to repeat skip reason resolution and blktests run.
This is a troublesome work.

In this patch, we add skip reasons to SKIP_REASONS array, then all of
the skip reasons will be printed by iterating SKIP_REASONS at one shot
run.

Most of the works are done by following script:

sed -i 's/SKIP_REASON/SKIP_REASONS/' $(git ls-files)
git grep -h 'SKIP_REASONS=' | awk -F'SKIP_REASONS=' '{print $2}' | sort | uniq |
while read -r r
do
s="SKIP_REASONS=$r"
f=$(git grep -l "$s")
sed -i "s@$s@SKIP_REASONS+=($r)@" $f
done

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
26 files changed:
check
common/cgroup
common/cpuhotplug
common/fio
common/iopoll
common/multipath-over-rdma
common/null_blk
common/rc
common/shellcheck
new
tests/block/030
tests/loop/rc
tests/meta/007
tests/meta/008
tests/meta/013
tests/meta/014
tests/meta/015
tests/meta/rc
tests/nbd/rc
tests/nvme/rc
tests/nvmeof-mp/rc
tests/scsi/rc
tests/srp/012
tests/srp/rc
tests/zbd/004
tests/zbd/rc