aboutsummaryrefslogtreecommitdiff
path: root/build/lib.linux-x86_64-2.7/lava_android_test/test_definitions/usbhardware/usbhardware.sh
blob: d7e8f7dd67770a631237e8567cd870ffba29baa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/system/bin/sh

test_func(){
    if [ ! -f /sys/class/android_usb/android0/state ]; then
         echo "usbhardware=fail"
         exit
    fi  

    cat /sys/class/android_usb/android0/state
    echo "usbhardware=pass"
}

test_func