summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-11-03 18:05:09 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-11-03 18:05:09 +0000
commit2d6b2d48177e4b7c1f10371dbbda0e100ad8b47d (patch)
tree6e700966fbde382cd6f62cb41d45e4fb7190d32a
parent8e31a18b6520319473ce89b0d850092ae4bb2d6b (diff)
parent9f6d4a31e7b04297a4d91abc946b63e21c048b48 (diff)
downloadvndk-2d6b2d48177e4b7c1f10371dbbda0e100ad8b47d.tar.gz
Snap for 6948038 from 9f6d4a31e7b04297a4d91abc946b63e21c048b48 to rvc-platform-releaseandroid-platform-11.0.0_r4android-platform-11.0.0_r3
Change-Id: Idddddf46577f0f027d458f5e0cc35cc32d63e278
-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 []