Skip to content

Commit fb5e92b

Browse files
authored
Merge pull request #239 from achauras-qcom/bugfix/fix-usbhost-nodev
Fix: USBHost test results inconsistent
2 parents effc51a + 45f6cef commit fb5e92b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Runner/suites/Kernel/Baseport/USBHost

Runner/suites/Kernel/Baseport/USBHost/run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ echo "Enumerated USB devices..."
5555
echo "$usb_output"
5656

5757
# Check if any USB devices were found
58-
if [ "$device_count" -eq 0 ]; then
58+
if [ -z "$usb_output" ] || [ "$device_count" -eq 0 ]; then
5959
log_fail "$TESTNAME : Test Failed - No USB devices found."
6060
echo "$TESTNAME FAIL" > "$res_file"
61+
exit 1
6162

6263
elif [ "$non_hub_count" -eq 0 ]; then
6364
log_fail "$TESTNAME : Test Failed - Only USB hubs detected, no functional USB devices."

0 commit comments

Comments
 (0)