When running the tests with FC as transport and the udev auto connect
enabled, discovery controllers are created and destroyed while the tests
are running.
The cleanup code expects that all devices are under blktests control,
but this isn't the case. Thus filter out disconnect failures as well.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
if [[ "$transport" != "fc" ]]; then
echo "WARNING: Test did not clean up ${nvme_trtype} device: ${dev}"
fi
- _nvme_disconnect_ctrl "${dev}"
+ _nvme_disconnect_ctrl "${dev}" 2>/dev/null
fi
done