]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
check: Suppress a shellcheck warning about the DMESG_FILTER initialization
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 19 Jun 2018 20:23:52 +0000 (13:23 -0700)
committerOmar Sandoval <osandov@fb.com>
Mon, 25 Jun 2018 19:19:45 +0000 (12:19 -0700)
Avoid that shellcheck reports the following:

check:396:2: warning: Use var=$(command) to assign output (or quote to assign string). [SC2209]

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
check

diff --git a/check b/check
index 1dcaddb7c9d3051e81f2f859a0555ede2cb6ca78..2f7e813cfc2fa37946a64e09250d241f0282772f 100755 (executable)
--- a/check
+++ b/check
@@ -394,7 +394,7 @@ _call_test() {
 _run_test() {
        TEST_NAME="$1"
        CHECK_DMESG=1
-       DMESG_FILTER=cat
+       DMESG_FILTER="cat"
 
        # shellcheck disable=SC1090
        . "tests/${TEST_NAME}"