summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-08-20 22:37:15 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-08-20 22:37:15 +0000
commiteaa47c72bcb1048682aa10de7634b378a7239ec1 (patch)
tree6e700966fbde382cd6f62cb41d45e4fb7190d32a
parent61a5580b350fc1d2e8106a3a76f45c9cdb2b1044 (diff)
parentae65a3e744b5e2520ad4fe8036ec6d363f65c446 (diff)
downloadvndk-android-11.0.0_r16.tar.gz
Snap for 6779986 from ae65a3e744b5e2520ad4fe8036ec6d363f65c446 to rvc-d1-b-releaseandroid-11.0.0_r16android11-d1-b-release
Change-Id: Ibf29b2310d995d8fe87000c55e8cd982df562d09
-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 []