[PATCH blktests 09/10] nvme: skip the tests which need a feature the remote target lacks
Daniel Wagner
dwagner at suse.de
Thu Nov 12 01:17:29 PST 2026
On Wed, Nov 11, 2026 at 07:33:36PM +0900, Shin'ichiro Kawasaki wrote:
> > + features=" $("${nvme_target_control}" config --show-features) "
> > + for feature in "$@"; do
> > + if [[ "${features}" != *" ${feature} "* ]]; then
>
> The line above is a bit confusing for me. I guess the line can be simpler as
> follows:
>
> if [[ "${features}" =~ " ${feature} " ]]; then
>
> May I ask you to confirm it?
Agreed, Klaus likes complex stuff, after he is German. An a more serious
note: though to keep the logic consistent it would be
if [[ ! "${features}" =~ " ${feature} " ]]; then
The original line checks if the feature is missing so that the function
can skip the test.
I'll change it. Thanks!
More information about the Linux-nvme
mailing list