@@ -71,10 +71,10 @@ echo 0 > /sys/kernel/tracing/tracing_on
echo "TEST: Events seen"
trace_out=$(cat /sys/kernel/tracing/trace)
-num_overflow=$(grep -c "cxl_overflow" <<< "${trace_out}")
-num_fatal=$(grep -c "log=Fatal" <<< "${trace_out}")
-num_failure=$(grep -c "log=Failure" <<< "${trace_out}")
-num_info=$(grep -c "log=Informational" <<< "${trace_out}")
+num_overflow=$(grep -c "cxl_overflow" <<< "${trace_out}" || true)
+num_fatal=$(grep -c "log=Fatal" <<< "${trace_out}" || true)
+num_failure=$(grep -c "log=Failure" <<< "${trace_out}" || true)
+num_info=$(grep -c "log=Informational" <<< "${trace_out}" || true)
echo " LOG (Expected) : (Found)"
echo " overflow ($num_overflow_expected) : $num_overflow"
echo " Fatal ($num_fatal_expected) : $num_fatal"