summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-11-16 12:59:16 +0000
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-11-16 12:59:16 +0000
commit08d460817cf5c506e59a55b6e2b32e06b1755629 (patch)
treec694efd130adada3fde9fc779153181581d96e93
parenta383d603922ae620d5f051134f16e3f3f6d63f24 (diff)
automated: android-test-lib: don't return 1 when 'find' fails
Change-Id: I144d9ff5e061c1555e767708cb3d4b48834bf99a Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rwxr-xr-xautomated/lib/android-test-lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/automated/lib/android-test-lib b/automated/lib/android-test-lib
index 3c5e829..633dd45 100755
--- a/automated/lib/android-test-lib
+++ b/automated/lib/android-test-lib
@@ -23,7 +23,8 @@ adb_debug_info() {
else
info_msg "usbutils not installed, unable to get device information with 'lsusb'."
info_msg "Listing 'find /dev/bus/usb' output directly..."
- find /dev/bus/usb
+ # avoid returning 1 when 'find' doesn't work
+ find /dev/bus/usb || true
fi
}