]> www.infradead.org Git - users/hch/blktests.git/commitdiff
tests/block/030: Make this test less noisy
authorBart Van Assche <bvanassche@acm.org>
Tue, 26 Jan 2021 04:45:17 +0000 (20:45 -0800)
committerOmar Sandoval <osandov@fb.com>
Wed, 3 Feb 2021 16:11:53 +0000 (08:11 -0800)
Since test block/030 injects blk_mq_realloc_hw_ctxs() failures, it is
expected that writes into the 'submit_queues' attribute can fail. Send
the 'nproc: write error: Cannot allocate memory' failures to $FULL instead
of stderr. See also commit a668c61064f2 ("Add a test that triggers the
blk_mq_realloc_hw_ctxs() error path").

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
tests/block/030

index 84302c109c0cc226fb27084373f57eae8628f51d..d2e528697873ca619a0e4aa0d388d89d51d0032c 100755 (executable)
@@ -42,7 +42,7 @@ test() {
        if { echo "$(<"$sq")" >$sq; } 2>/dev/null; then
                for ((i = 0; i < 100; i++)); do
                        echo 1 > $sq
-                       nproc > $sq
+                       { nproc > $sq; } >>"$FULL" 2>&1
                done
        else
                SKIP_REASON="Skipping test because $sq cannot be modified"