]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
tests/meta/group: Fix shellcheck complaints
authorBart Van Assche <bart.vanassche@wdc.com>
Fri, 22 Jun 2018 22:19:41 +0000 (15:19 -0700)
committerOmar Sandoval <osandov@fb.com>
Mon, 25 Jun 2018 22:38:18 +0000 (15:38 -0700)
Avoid that shellcheck complains about unused global variables.
Avoid that shellcheck complains about using cat instead of
redirection.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
tests/meta/group

index 4281ea175a783fb98c8c322ff5a0c786ada673a9..8e3322ebe4c25d85aadebe6c63d3269f505dfb4c 100644 (file)
@@ -76,7 +76,7 @@ RIP: blk_dev_init+0x4/0x6 RSP: ffffc9000031fe70
 ---[ end trace d9ab35f734a89f58 ]---
 EOF
 
-       cat "$TMPDIR/dmesg" | while IFS= read -r line; do
+       while IFS= read -r line; do
                echo "$line" >> /dev/kmsg
-       done
+       done < "$TMPDIR/dmesg"
 }