diff --git a/tests/common b/tests/common index e9b973e448..e996b35af7 100644 --- a/tests/common +++ b/tests/common @@ -238,7 +238,7 @@ run_check() "${cmd_array[@]}" >> "$RESULTS" 2>&1 if [ "$?" -ne 0 ]; then - if cat "${cmd_array[@]}" | grep -q mount; then + if echo "${cmd_array[@]}" | grep -q mount; then dmesg | tail -n 15 >> "$RESULTS" fi _fail "failed: ${cmd_array[@]}"