summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-08-10 23:12:14 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-08-10 23:12:14 +0000
commit4f62b2a10e652eb2326caef785f8dabb40b33437 (patch)
tree6e700966fbde382cd6f62cb41d45e4fb7190d32a
parent508e746ef665d249dda5d90fd25cf08aa3351d6f (diff)
parent176aef2b4f409916a1b8e8648d282672cca7780a (diff)
downloadvndk-4f62b2a10e652eb2326caef785f8dabb40b33437.tar.gz
Snap for 6751875 from 176aef2b4f409916a1b8e8648d282672cca7780a to rvc-qpr1-release
Change-Id: I31d5b65fde8500f9543b02bb3402b54134c6773a
-rw-r--r--utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 65b2eee..c6e13c2 100644
--- a/utils.py
+++ b/utils.py
@@ -247,4 +247,7 @@ class AndroidDevice(object):
if return_code != 0 or err.strip():
raise IOError("`find %s -name '%s' %s` stdout: %s\nstderr: %s" %
(path, name_pattern, " ".join(options), out, err))
- return out.strip().split("\n")
+
+ # Return empty file list when out is an empty string.
+ out = out.strip()
+ return out.split("\n") if out else []