]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
nvme/rc: do not issue errors when disconnecting when using fc transport
authorDaniel Wagner <dwagner@suse.de>
Mon, 12 Feb 2024 10:40:45 +0000 (11:40 +0100)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Tue, 13 Feb 2024 08:30:52 +0000 (17:30 +0900)
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>
tests/nvme/rc

index ca6a284a1e259a008de81b2a2eeed229e53c683e..cdfc738d3aec154f5beb81a20468982ac4d4a253 100644 (file)
@@ -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