]> www.infradead.org Git - users/hch/blktests.git/commit
common/rc: don't unset previous SKIP_REASON in _have_kernel_option()
authorLi Zhijian <lizhijian@fujitsu.com>
Wed, 15 Jun 2022 07:07:39 +0000 (15:07 +0800)
committerLi Zhijian <lizhijian@fujitsu.com>
Mon, 20 Jun 2022 06:24:47 +0000 (14:24 +0800)
commit7ae143852f6c3f9b0587b824db13cccde704238a
tree77ce35acb299b9e27b8752cc11b23e1b741aead3
parentfc2b5d61519c80fb5abb24c2ff368e4cf4763269
common/rc: don't unset previous SKIP_REASON in _have_kernel_option()

unset previous SKIP_REASON could cause a false failure.

nvme/033 => nvme0n1 (create and connect to an NVMeOF target with a passthru controller) [failed]
    runtime  2.383s  ...  0.376s
    --- tests/nvme/033.out      2022-06-08 08:46:27.956692453 +0000
    +++ /home/lizhijian/blktests/results/nvme0n1/nvme/033.out.bad       2022-06-15 06:32:31.131001276 +0000
    @@ -1,3 +1,8 @@
     Running nvme/033
    -NQN:blktests-subsystem-1 disconnected 1 controller(s)
    +tests/nvme/rc: line 181: nvme: command not found
    +tests/nvme/033: line 19: nvme: command not found
    +tests/nvme/033: line 20: nvme: command not found
    +tests/nvme/033: line 19: nvme: command not found
    +tests/nvme/033: line 20: nvme: command not found
    ...
    (Run 'diff -u tests/nvme/033.out /home/lizhijian/blktests/results/nvme0n1/nvme/033.out.bad' to see the entire diff)

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
common/rc