We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents effc51a + 45f6cef commit fb5e92bCopy full SHA for fb5e92b
1 file changed
Runner/suites/Kernel/Baseport/USBHost/run.sh
@@ -55,9 +55,10 @@ echo "Enumerated USB devices..."
55
echo "$usb_output"
56
57
# Check if any USB devices were found
58
-if [ "$device_count" -eq 0 ]; then
+if [ -z "$usb_output" ] || [ "$device_count" -eq 0 ]; then
59
log_fail "$TESTNAME : Test Failed - No USB devices found."
60
echo "$TESTNAME FAIL" > "$res_file"
61
+ exit 1
62
63
elif [ "$non_hub_count" -eq 0 ]; then
64
log_fail "$TESTNAME : Test Failed - Only USB hubs detected, no functional USB devices."
0 commit comments