From: Daniel Wagner Date: Mon, 12 Feb 2024 10:40:45 +0000 (+0100) Subject: nvme/rc: do not issue errors when disconnecting when using fc transport X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=41aa34dd679882ad89a6d3ddeba0866a572e283c;p=users%2Fsagi%2Fblktests.git nvme/rc: do not issue errors when disconnecting when using fc transport 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 Signed-off-by: Shin'ichiro Kawasaki --- diff --git a/tests/nvme/rc b/tests/nvme/rc index ca6a284..cdfc738 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -356,7 +356,7 @@ _cleanup_nvmet() { 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