]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
nvme: ignore error messages when running tests
authorHannes Reinecke <hare@suse.de>
Tue, 30 Aug 2022 12:36:55 +0000 (14:36 +0200)
committerDaniel Wagner <dwagner@suse.de>
Thu, 26 Jan 2023 14:01:49 +0000 (15:01 +0100)
There are subtle differences in the way fc is creating associations,
causing the error messages from 'nvme connect' to be different than
on other transports. As we'll get notified anyway when 'nvme connect'
fails there is not point is specifying the error message in the response
files, so just suppress error messages here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
tests/nvme/041.out
tests/nvme/044.out
tests/nvme/rc

index 35aaf58f472882edee5cf96ed7a6398b98792538..efee74c893f296fc9c588a4f784cf181793e5bc7 100644 (file)
@@ -1,6 +1,5 @@
 Running nvme/041
 Test unauthenticated connection (should fail)
-no controller found: failed to write to nvme-fabrics device
 NQN:blktests-subsystem-1 disconnected 0 controller(s)
 Test authenticated connection
 NQN:blktests-subsystem-1 disconnected 1 controller(s)
index d2fefa98f024f22266a13f3a16b5a8b42e5c69fc..53fdbe127d68ef3a034d147e97b5729700d00de9 100644 (file)
@@ -2,11 +2,9 @@ Running nvme/044
 Test host authentication
 NQN:blktests-subsystem-1 disconnected 1 controller(s)
 Test invalid ctrl authentication (should fail)
-no controller found: failed to write to nvme-fabrics device
 NQN:blktests-subsystem-1 disconnected 0 controller(s)
 Test valid ctrl authentication
 NQN:blktests-subsystem-1 disconnected 1 controller(s)
 Test invalid ctrl key (should fail)
-no controller found: failed to write to nvme-fabrics device
 NQN:blktests-subsystem-1 disconnected 0 controller(s)
 Test complete
index da996466ab396db4c8bc5af0692e836a11c9c70e..210a82aea384ddae2fca69e7c203d2899477f590 100644 (file)
@@ -344,7 +344,7 @@ _nvme_connect_subsys() {
        if [[ -n "${ctrlkey}" ]]; then
                ARGS+=(--dhchap-ctrl-secret="${ctrlkey}")
        fi
-       nvme connect "${ARGS[@]}"
+       nvme connect "${ARGS[@]}" 2> /dev/null
 }
 
 _nvme_discover() {